After installing Dnsmasq, the domain name is not pinged
Hello,
I used the article https://www.howtoforge.com/how-to-se...-on-debian-12/ to configure an internal DNS server. My server has two network cards as follows: Code:
# ifconfig Code:
# ping google.com Code:
# sysctl -p Code:
# iptables -t nat -A POSTROUTING -o enp0s3 -j MASQUERADE Thank you. |
Please post the output of iptables-save and the contents of /etc/resolve.conf
|
Quote:
As you asking about this PC or other clients? Not enough information and without seeing the dnsmasq.conf file impossible to say what is wrong. |
If you can ping google DNS cache server then IP forwarding is working. Are you allowing outgoing traffic to port 53?
Try this command to send DNS query to google DNS server directly bypassing whatever resolvers you have configured Code:
dig @8.8.8.8 google.com Code:
host google.com 8.8.8.8 Code:
iptables -L OUTPUT Code:
iptables -P OUTPUT ACCEPT Code:
route -n Code:
no-resolv |
All times are GMT -5. The time now is 06:20 PM. |