# DNS issues on virtualmin vps

**URL:** <https://forum.virtualmin.com/t/dns-issues-on-virtualmin-vps/110315>\
**Category:** Virtualmin\
**Created:** [April 13, 2021, 4:10pm UTC](https://forum.virtualmin.com/t/dns-issues-on-virtualmin-vps/110315 "2021-04-13T16:10:56Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![whirlweb](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/w/b38774/32.png) [@whirlweb](https://forum.virtualmin.com/u/whirlweb)\
**Post date:** [April 13, 2021, 4:10pm UTC](https://forum.virtualmin.com/t/dns-issues-on-virtualmin-vps/110315/1 "2021-04-13T16:10:57Z")

</div>

Hi, My VPS cant resolve domain names anymore. I havent changed anything, I tried adding forwarders to the BIND DNS server for 8.8.8.8 and 8.8.4.4 but when I try a ping from the command line I get: ping: unknown host [www.google.co.uk](http://www.google.co.uk)  
I tried to change DNS for the eth0 in networking but because it gets it via DHCP it just changes it back. I’m stumped as what i can try, its been working for 2 years without a hitch then just for no reason. I have asked the provider of the VPS to see if they have changed DNS at their end but no response of of yet, any suggestions anyone? thanks  
ps this has now stopped backups to S3 and also email forms working, also slowed everything down it seems.

---

<div class="post-metadata">

**Author:** ![scotwnw](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/scotwnw/32/2542_2.png) [@scotwnw](https://forum.virtualmin.com/u/scotwnw)\
**Post date:** [April 13, 2021, 5:31pm UTC](https://forum.virtualmin.com/t/dns-issues-on-virtualmin-vps/110315/2 "2021-04-13T17:31:16Z")

</div>

Have you tried to dig to see where its failing?

On cmd line… dig @8.8.8.8 [domainname.com](http://domainname.com)  
If google doesn’t show your ip/dns…  
Then dig @your-nameserver-ip [domain.com](http://domain.com). Which should show an IP for the domain and an authoritative section listing all your dns servers.

OR go to [mxtoolbox.com](http://mxtoolbox.com) and do their dns diagnosis tests. Should be able to figure out where its failing from that.

---

<div class="post-metadata">

**Author:** ![whirlweb](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/w/b38774/32.png) [@whirlweb](https://forum.virtualmin.com/u/whirlweb)\
**Post date:** [April 14, 2021, 8:48am UTC](https://forum.virtualmin.com/t/dns-issues-on-virtualmin-vps/110315/3 "2021-04-14T08:48:42Z")

</div>

Dig not installed on VPS and cant install as it cant resolve the download url. I manually change the dns server from 127.0.0.1 to 8.8.8.8 in the resolv.conf but I still couldnt ping external websites.

---

<div class="post-metadata">

**Author:** ![scotwnw](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/scotwnw/32/2542_2.png) [@scotwnw](https://forum.virtualmin.com/u/scotwnw)\
**Post date:** [April 14, 2021, 1:01pm UTC](https://forum.virtualmin.com/t/dns-issues-on-virtualmin-vps/110315/4 "2021-04-14T13:01:47Z")

</div>

Oh, so it not a dns issue with your domains its a dns resolving issuing with ALL domains.  
Can you ping 8.8.8.8? But not [google.com](http://google.com)? That is a network config issue for eth0 device. You where right to look for resolve.conf but depending on which OS you have, dns server config lines might not be located there any more. I know ubuntu changed a couple version ago.

---

<div class="post-metadata">

**Author:** ![whirlweb](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/w/b38774/32.png) [@whirlweb](https://forum.virtualmin.com/u/whirlweb)\
**Post date:** [April 15, 2021, 8:32am UTC](https://forum.virtualmin.com/t/dns-issues-on-virtualmin-vps/110315/5 "2021-04-15T08:32:02Z")

</div>

Hi no I cant ping 8.8.8.8 only internal like 127.0.0.1 I get a response. On this I contacted the VPS provider and asked them what the correct default gateway is. They came back with something different than what the NIC is getting from DHCP. What I’m worried about is if I change to the one they said if incorrect I will not be able to connect to my VPS to change it back, Would you agree?

---

<div class="post-metadata">

**Author:** ![scotwnw](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/scotwnw/32/2542_2.png) [@scotwnw](https://forum.virtualmin.com/u/scotwnw)\
**Post date:** [April 15, 2021, 3:05pm UTC](https://forum.virtualmin.com/t/dns-issues-on-virtualmin-vps/110315/6 "2021-04-15T15:05:45Z")

</div>

I don’t see how you’re getting in at all, if it cant ping the gateway.  
Are you getting in over SSH? Or a remote terminal provided by the host?

If over ssh, you you will lose connection if gateway is not correct. Are you possibly getting in over ipv6? is that why its working with wrong ipv4 gateway? try ping6 [google.com](http://google.com) or ping6 2606:4700:4700::1111 (cloudflare’s dns)

---

<div class="post-metadata">

**Author:** ![tpnsolutions](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/tpnsolutions/32/69_2.png) [@tpnsolutions](https://forum.virtualmin.com/u/tpnsolutions)\
**Post date:** [April 15, 2021, 3:13pm UTC](https://forum.virtualmin.com/t/dns-issues-on-virtualmin-vps/110315/7 "2021-04-15T15:13:29Z")

</div>

@whirlweb,

You don’t add forward DNS records to BIND to fix a resolution issue. Rather you adjust the “/etc/resolv.conf” file and add…

```
nameserver 8.8.8.8
nameserver 8.8.4.4

```

This file assigns the system resolvers so that when you do a “ping [google.com](http://google.com)” it will use one of the above nameservers to resolve the domain…

Best Regards,  
Peter Knowles | TPN Solutions

---

<div class="post-metadata">

**Author:** ![whirlweb](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/w/b38774/32.png) [@whirlweb](https://forum.virtualmin.com/u/whirlweb)\
**Post date:** [April 17, 2021, 5:33pm UTC](https://forum.virtualmin.com/t/dns-issues-on-virtualmin-vps/110315/8 "2021-04-17T17:33:13Z")

</div>

The provider ask me to reboot from their console rather than from virtualmin, that sorted it and everything now working. Not sure what diference rebooting from virtualmin is different from rebooting from the VPS’s providers control panel. I think its a routing thing thats been updated but just guessing.

---

<div class="post-metadata">

**Author:** ![system](https://cdn.forum.virtualmin.com/uploads/default/original/2X/c/cd96d761e326db4b2bef94886a639109bd7a8e76.svg) [@system](https://forum.virtualmin.com/u/system)\
**Post date:** [April 25, 2021, 5:33pm UTC](https://forum.virtualmin.com/t/dns-issues-on-virtualmin-vps/110315/9 "2021-04-25T17:33:58Z")

</div>

Closed on April 25, 2021, 5:33pm UTC

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.
