DNS issue inside router, clients are OK
Posted: Sat Aug 04, 2018 11:47 pm
I'm currently facing an issue where the clients connected to the router have normal access to the internet, with full DNS resolution, but the router itself does not.
This is the command from a client:
But if ssh to the router and execute the same command:
But pinging the IP address directly works just fine:
This Gargoyle router is a wired bridge, configured on Gateway mode and assigned an IP address of 192.168.0.2 with 192.168.0.1 as gateway. I have set Custom DNS servers and added 192.168.0.1.
On the Internet/WAN section the "Connect Via" is Disabled, and WAN Internet port is also Disabled.
I tried adding a nameserver entry to resolv.conf and /etc/init.d/network restart, but nothing happened.
What am I missing? Without the DNS server inside the router I can't use NTP server or opkg.
This is the command from a client:
Code: Select all
xubuntu@xubuntu:~$ ping -c 3 www.g1.com.br
PING www.g1.com.br (186.192.90.5) 56(84) bytes of data.
64 bytes from 186-192-90-5.prt.globo.com (186.192.90.5): icmp_seq=1 ttl=244 time=35.0 ms
64 bytes from 186-192-90-5.prt.globo.com (186.192.90.5): icmp_seq=2 ttl=244 time=39.5 ms
64 bytes from 186-192-90-5.prt.globo.com (186.192.90.5): icmp_seq=3 ttl=244 time=40.5 ms
--- www.g1.com.br ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 35.000/38.361/40.500/2.411 ms
Code: Select all
root@Gargoyle:~# ping -c 3 www.g1.com.br
ping: bad address 'www.g1.com.br'
Code: Select all
root@Gargoyle:~# ping -c 3 186.192.90.5
PING 186.192.90.5 (186.192.90.5): 56 data bytes
64 bytes from 186.192.90.5: seq=0 ttl=244 time=40.147 ms
64 bytes from 186.192.90.5: seq=1 ttl=244 time=34.067 ms
64 bytes from 186.192.90.5: seq=2 ttl=244 time=33.144 ms
--- 186.192.90.5 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 33.144/35.786/40.147 ms
On the Internet/WAN section the "Connect Via" is Disabled, and WAN Internet port is also Disabled.
I tried adding a nameserver entry to resolv.conf and /etc/init.d/network restart, but nothing happened.
What am I missing? Without the DNS server inside the router I can't use NTP server or opkg.
