Dns server

Hi, total newbie here but having some issuie whit dns server, i have added, 1.1.1.1 and 1.0.0.1, but when i try to ping and ouside ip it uses the ip of the router, so why is the ip of the router showing as an dns? How to fix?

Sent fra min BLA-L29 via Tapatalk

Check your DNS settings in the router. Seems you are advertising in the DHCP lease that your router is a DNS server, which it should be if you want it to be the DNS server. You are also advertising that 1.1.1.1 and 1.0.0.1 are also DNS servers, which is not a bad idea if your router DNS server stops working.

Remember that under ip/dns you are setting up the router to be the dns server and you told it that when it has to query for itself (or for if queried by devices in your network) that it has to go out to 1.1.1.1 or 1.0.0.1

And under ip/dhcp server/networks is where you tell the devices via advertisement what they will use for DNS queries.

DNS servers seem to be empty in DHCP Server settings for your network (IP → DHCP Server → Networks → DNS servers). In this case clients get DNS servers that are used by the router itself (IP → DNS).

By setting allow-remote-requests to “yes” you enabled DNS server on your router. That is why you see also the router’s IP in the list of DNS servers on a client.

When the client makes a request to the router’s own DNS server, the router will check the DNS cache first and return the IP address (if present) from the cache. If there is no entry in the cache, name resolution will be done by one of the servers in IP → DNS and result saved to the cache.

So you have two options to “fix” it:

  1. Disable router’s own DNS if you don’t need it (set allow-remote-requests to “no” in IP → DNS).
  2. Specify DNS servers explicitly in IP → DHCP Server → Networks.