Installation guide

range=10.1.1.10,10.1.1.50,255.255.255.0,12h
Modify dhcp-option to override the default route supplied by dnsmasq, which assumes the
router is the same machine as the one running dnsmasq. An example would be dhcp-
option=3,10.1.1.1
After configuring dnsmasq you can copy the script below as xenDNSmasq to /etc/init.d
If you want to automatically start dnsmasq during system boot, you should register it using
chkconfig(8):
chkconfig --add xenDNSmasq
Enable it for automatic startup:
chkconfig --levels 345 xenDNSmasq on
To configure dnsmasq to restart every time Net workMan ag er detects a change in connectivity
you can use the supplied script nm-dnsmasq.
Copy the nm-dnsmasq script to /etc/NetworkManager/dispatcher.d/
The Net wo rkMan ag er dispatcher will execute the script (in alphabetical order if you have
other scripts in the same directory) every time there is a change in connectivity.
dnsmasq will also detect changes in your /etc/resolv.conf and automatically reload them (if
you start up a VPN session, for example).
Both the nm-dnsmasq and xenDNSmasq script will also set up NAT if you have your guests on a
hidden network to allow them access to the public network.
Chapt er 1 1 . Pre- Red Hat Ent erprise Linux 5.4 Xen n et workin g
14 5