Simple network within the company :
- Fortinet NAT/router
- Windows XP clients around room
- Linux server (serving via Samba, potentially NFS) I just want to name a few machines, to avoid typing in IPs all the time.
On the Server machine
yum remove caching-nameserver
yum install dnsmasq
Edit /etc/dnsmasq.conf, enable :
local=/fscapital/ # For LAN addresses like server.fscapital
resolv-file=/etc/resolv-tw.conf # so that localhost also uses dnsmasq
Into : /etc/host.conf file: “order hosts,bind”
[root@fscapital intranet]# more /etc/resolv.conf
[root@fscapital intranet]# more /etc/resolv-tw.conf
After every change to /etc/hosts need to do :
On the Client machines
; generated by /sbin/dhclient-script
; nameserver 192.168.10.1
On the Router
All requests across the network (whether DHCP referred or not) go to the gateway IP.
Set the Fortinet to use the Server for DNS requests (this should forward the requests to our new DNSmasq server).
man page : http://www.thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html