Passwort:
[root@miketesu ~]# rpm -q dnsmasq
dnsmasq-2.45-1.fc10.i386
[root@miketesu ~]# yum install dnsmasq
Loaded plugins: protectbase, refresh-packagekit
0 packages excluded due to repository protections
Setting up Install Process
Parsing package install arguments
Package dnsmasq-2.45-1.fc10.i386 already installed and latest version
Nothing to do
[root@miketesu ~]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.5.0 0.0.0.0 255.255.255.0 U 1 0 0 eth2
0.0.0.0 192.168.5.9 0.0.0.0 UG 0 0 0 eth2
You can create the file with this command (assuming your network interface is eth0):
nano /etc/dhclient-eth0.conf
Then make this the only line in the file:
prepend domain-name-servers 127.0.0.1;
And then save the file and close it (Ctrl-X then Y).
[root@miketesu ~]# nano /etc/dhclient-eth2.conf
[root@miketesu ~]# nano /etc/dhclient-eth0.conf
[root@miketesu ~]# nano /etc/dhclient-eth1.conf
[root@miketesu ~]# service dnsmasq start
Starting dnsmasq: [ OK ]
[root@miketesu ~]# chkconfig dnsmasq on
[root@miketesu ~]# service NetworkManager restart
Stopping NetworkManager daemon: [ OK ]
Setting network parameters... [ OK ]
Starting NetworkManager daemon: [ OK ]