Glam Prestige Journal

Bright entertainment trends with youth appeal.

I have a DNS server I use to route traffic to local services. For example, it points router.home.lan to my router.

However, when I try to visit this address in my browser on my Ubuntu machine, it takes an extremely long time to load. If I visit the page on my Macbook or use the IP address on my Ubuntu machine then the page to load instantly.

I believe it has something to do with the DNS resolution on my Ubuntu machine. Here is the output from host:

time host -v router.home.lan
Trying "router.home.lan"
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 59318
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;router.home.lan. IN A
;; ANSWER SECTION:
router.home.lan. 2 IN A 192.168.1.1
Received 49 bytes from 127.0.0.53#53 in 12 ms
Trying "router.home.lan"
;; connection timed out; no servers could be reached
Trying "router.home.lan"
;; connection timed out; no servers could be reached
host -v router.home.lan 0.01s user 0.01s system 0% cpu 20.021 total

The first result comes back instantly, then the next two time out after 10 seconds each. I get the same behavior with ping.

This only happens with my local services on the home.lan domain.

Changing nameserver in /etc/resolv.conf to the IP of my local DNS server fixes the problem, however that's not sustainable as it frequently gets overwritten and causes issues outside of my network.

2

1 Answer

In terminal, type:

nm-connection-editor

And edit your "Wired Connection".

enter image description here

3

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy