Linking Domains to your GoDaddy Account

When GoDaddy upgraded and change my server package, we move my domains from one plan to another; however, the sites never went live on the new servers. This was because GoDaddy's automated process did not update my DNS settings properly. Do this manually.

Get the IP address of the new server, and you need to go through each domain that you own and update the A records for the DNS.

VirtualBox Company VPN Issues with DNS

Refer: https://superuser.com/questions/570984/virtualbox-guest-ubuntu-loses-dns-when-host-connects-to-vpn

$ sudo gedit /etc/NetworkManager/NetworkManager.conf

Comment out, the plugins line below (shown before commenting)

[main]
plugins=ifupdown,keyfile,ofono
# dns=dnsmasq

Notes: had a very similar situation with Lubuntu 16.04 (should be identical in other Ubuntus) but this fix did not improve the situation. At least with 16.04, the problem appears to be that NetworkManager uses a local DNS proxy (dnsmasq), and this doesn't play nice with VPN connections, at least in the default configuration.

Commenting/deleting dns=dnsmasq in /etc/NetworkManager/NetworkManager.conf

Note: This fixed was applied too on the Windows host, but it did not seem to make a difference, go ahead and do both.

"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" modifyvm Ubuntu-1804-Convert --natdnshostresolver1 on

Ubuntu 18.04 Lost Internet in Parallels

Ubuntu has changed how things have worked, and on the company network, you will need to set what DNS server is being used.

There is a settings place for this now, not tested yet:

Refer: https://vitux.com/how-to-change-dns-settings-in-ubuntu/

Refer: https://askubuntu.com/questions/1021884/no-internet-after-upgrade-from-16-04-to-18-04

Quick Test

If the /etc/resolv.conf is empty but you can ping 8.8.8.8, you can use the following as a quick test/patch, but you will need to use the following section for a complete fix.

$ echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf > /dev/null

Permanent Fix

HALW DNS at time of writing was: 10.211.55.1

Use the following command to determine current IP address:
$ nmcli dev show | grep 'IP4.DNS'

Ubuntu might change completely how this works in the future, you can review this article here: https://www.techrepublic.com/article/how-to-set-dns-nameservers-in-ubuntu-server-18-04/

If the /etc/resolvconf/resolv.conf.d/head is empty then you have to repeat the command above after every restart except you do this:

$ sudo apt install resolvconf
$ echo "nameserver 8.8.8.8" | sudo tee -a /etc/resolvconf/resolv.conf.d/head > /dev/null
$ echo "nameserver 10.211.55.1" | sudo tee -a /etc/resolvconf/resolv.conf.d/head > /dev/null
$ echo "nameserver 8.8.4.4" | sudo tee -a /etc/resolvconf/resolv.conf.d/head > /dev/null

Then you have to restart the resolvconf and the networking

$ sudo systemctl enable resolvconf
$ sudo systemctl start resolvconf
$ sudo /etc/init.d/networking restart

 

Flush DNS Without Rebooting

Mac El Capitan 10.11.1
$ sudo killall –HUP mDNSResponder;say flushed

Mac Yosemite 10.10.4+
$ sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder;say cache flushed

Mac Yosemite 10.10.3-
$ sudo discoveryutil mdnsflushcache;sudo discoveryutil udnsflushcaches;say flushed

Ubuntu:
Note: Ubuntu doesn't cache DNS by default unless you install a DNS cache service manually.
$ sudo /etc/init.d/dns-clean restart

Windows:
Right-click Command Prompt and select Run as Administrator.
Run the following command: ipconfig /flushdns

Important:
Don't forget to change your host file's IP to 10.57.225.54 for halprdgit01.hq.halw.com if you use a Mac or Linux machine and hard-coded the IP into the host file.