Article version: Enterprise Server 2.17
Configuring DNS nameservers
GitHub Enterprise Server uses the dynamic host configuration protocol (DHCP) for DNS settings when DHCP leases provide nameservers. If nameservers are not provided by a dynamic host configuration protocol (DHCP) lease, or if you need to use specific DNS settings, you can specify the nameservers manually.
The nameservers you specify must resolve your GitHub Enterprise Server instance's hostname.
Warning: Do not change the hostname for GitHub Enterprise Server after initial setup. Changing the hostname will cause unexpected behavior, up to and including instance outages. If you need to change the hostname for GitHub Enterprise Server, contact GitHub Enterprise Support or GitHub Premium Support.
Configuring nameservers using the virtual machine console
- Using your virtualization platform tools, open the virtual machine console.
- To start your network setup, press S.
- Configure nameservers for your instance.
- To finish configuring your settings, press D.
Configuring nameservers using the administrative shell
- SSH into your GitHub Enterprise Server instance.
$ ssh -p 122 admin@HOSTNAME
- To edit your nameservers, enter:
$ sudo vim /etc/resolvconf/resolv.conf.d/head
- Append any
nameserver
entries, then save the file. - After verifying your changes, save the file.
- To add your new nameserver entries to your GitHub Enterprise Server instance, enter:
$ sudo service resolvconf restart