Am fooling around at home with installing dnsmasq on a raspberry pi and trying to use it for DNS resolution.
On the PI, I can add a machine on my network to my /etc/hosts and resolve it. But I can't seem to get any machines to resolve the same name using the PI as a DNS server.
My resolv.conf on the PI -
My /etc/host on the PI -
So I added a laptop of mine using a unique name - wibble and seem to be able to resolv it locally from the PI-
And I also seem to be able to resolv it from the laptop after adding a second DNS server to my resolv.conf. (The dnsmasq server is 192.168.1.82)
DIG:
and
but if I try and use the name:
So Question 1
Why I can't I ping it when I seem to be able to resolve it? I can ping it form the PI, but not the laptop set to use the PI for DNS resolution.
Question 2
The laptop is a Centos 6 machine, should I be editing /etc/resolv.conf directly? Won't it be overwritten if I reboot?
If so, how should I permanently add the PI as a secondary DNS server?
Thanks for any help in advance
Brad
---------- Post updated at 05:49 PM ---------- Previous update was at 02:17 PM ----------
Well it seems I had to add these lines:
expand-hosts
domain=home
to my /etc/dnsmasq.conf file and then clear my dns cache on the clients I was using.
Discovered that although I couldn't ping the wibble host, I could if I appended a dot to the name. This led me to discover some posts saying the same thing and talking about domain resolution.
Last edited by Scrutinizer; 12-06-2015 at 11:32 AM..
Hi,
We just built a new Solaris 10 zone. And would like to add it to our DNS server. Its also Solaris 10. Please let me know how can I get the IP resolved using this DNS server. I added entry into zone config file but not working. I did restarted the DNS services. And also added nameserver name... (5 Replies)
Hi,
We have built a new server (RHEL VM)and added that IP/hostname into dns zone configs file on DNS server (Solaris 10). Reloaded the configuration using
and added nameserver into resolv.conf on client. But when I am trying nslookup, its not getting resolved. The nameserver is not able to... (8 Replies)
Hi All,
Actually a very basic question this one. I've got a Solaris 10 x86 server box on a network. There are a group of other servers I need to connect to from it, but via a VPN connection. If I install a vpn client on my solaris box, can I configure the VPN connection so it only routes certain... (1 Reply)
Hi all,
What is the procedure to add a client to a DNS server.
what are the settings and files need to be added/changed ?
thanks in advance! (6 Replies)
I'd like to get some opnions on choosing DNS server:
Windows DNS vs Linux BIND comparrsion:
1) managment, easy of use
2) Security
3) features
4) peformance
5) ??
I personally prefer Windows DNS server for management, it supports GUI and command line. But I am not sure about security... (2 Replies)
hey guys, how to add soalris box as a microsoft DNS Client ?
and how to register in the microsoft DNS ??
i managed to query from the DNS server after adding /etc/resolve.conf and editing /etc/nsswitch.conf
but i need to register the soalris server (dns Client) into Microsoft DNS automatically.... (3 Replies)
Using Redhat Linux Enterprise AS 4
can someone teach me how to setup a dns server for my webserver?
i've registered a domainname at mydomain.com
but when i type in the domain i register i cannot enter to my webserver.
someone told me that it is related with the DNS setting on my server.
i've... (2 Replies)
I have a linux 7 machine and i want to able to connect it to my windows 98 server.What do i do.They can ping each other but how do i make them see each other e.g be able to copy and send files to each other and surf??? how do i set up netscape to connect to my servers web server??? (2 Replies)
How do i network my linux 7 machine to a windows 98 server.I can ping them but how do i see them in explorer and how can i surf in netscape on my linux machine? (3 Replies)
I am new to UNIX and have been trying to add DNS servers so I can access the internet under Solaris 9. I am using a static IP and have the subnet and gateway configured but cannot figure out to add DNS servers. Does anyone know how to do this? Thank you very much for any help. (1 Reply)