pow.cx wanna be
*.hostname.local dns resolver, pow.cx replacement wanna-be.
How to run eoe on Ubuntu 12.04 Precise
Make sure you have installed Twisted Names with aptitude:
sudo aptitude install python-twisted-names
Install eoe with pip command:
pip install eoe
Edit /etc/nsswitch.conf, hosts line to look like:
hosts: files mdns4 dns
You also need to edit /etc/NetworkManager/NetworkManager.conf file, comment out the line dns=dnsmasq:
You now need to configure Network Manager:
- In the System menu, click Preferences, then click Network Connections.
- Select the connection for which you want to configure Google Public DNS.
- To change the settings for an Ethernet connection, select the Wired tab, then select your network interface in the list. It is usually called eth0.
- To change the settings for a wireless connection, select the Wireless tab, then select the appropriate wireless network.
- Click Edit, and in the window that appears, select the IPv4 Settings or IPv6 Settings tab.
- If the selected method is Automatic (DHCP), open the dropdown and select Automatic (DHCP) addresses only instead. If the method is set to something else, do not change it.
- In the DNS servers field, enter the following IP: 127.0.0.1.
- Click Apply to save the change. If you are prompted for a password or confirmation, type the password or provide confirmation.
Restart Network Manager:
#> service network-manager restart
Try running eoe:
If it fails it messaging telling that the port is occupied, you are screwed. The only way I know to make it work is to pkill dnsmasq thus in the crontab you also need to kill dnsmasq.
If you want to have eoe always running just add it to your crontab with @reboot as its time field:
#> sudo crontab -e
And then add the following line:
If you don’t launch eoe at boot time, you will need to run it yourself, when needed with the following command:
When the eoe is not running you need to reconfigure network manager to use full dhcp.
Please take the time to read the documentation of avahi regarding the hosts trick.
This is really usefull if you deal with a lot of subdomains and that your network use dynamic IPs which change regularly.