Skip to main content

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.

Aviso: não altere o nome do host do GitHub Enterprise Server após a configuração inicial. Alterar o nome do host causará comportamento inesperado, até e incluindo falhas de instância.

Configuring nameservers using the virtual machine console

  1. Usando suas ferramentas de plataforma de virtualização, abra o console de máquina virtual. Console do GitHub Enterprise
  2. Para iniciar a configuração de rede, pressione S.
  3. Configure nameservers for your instance.
  4. Para concluir a definição das configurações, pressione D.

Configuring nameservers using the administrative shell

  1. SSH into your GitHub Enterprise Server instance. If your instance comprises multiple nodes, for example if high availability or geo-replication are configured, SSH into the primary node. If you use a cluster, you can SSH into any node. For more information about SSH access, see "Accessing the administrative shell (SSH)."

    $ ssh -p 122 admin@HOSTNAME
  2. To edit your nameservers, use the ghe-setup-network command in visual mode. For more information, see "Command-line utilities."

    ghe-setup-network -v
  3. To add your new nameserver entries to your GitHub Enterprise Server instance, run the following:

    sudo service resolvconf restart
    sudo service dnsmasq restart