At the office, the network is badly configured. Apparently, name resolution is not a priority and it is really slow. So, what I did was to install bind and use my own name server.

Disclaimer: expect bad English or rather, techno-babble to follow.

As I use gentoo, I first had to install bind.

emerge bind bind-tools

Then, you have to

rc-update named default

so that bind is always started when the machine reboots. Start bind with

/etc/init.d/named start

I modified /etc/resolv.conf by adding

nameserver 127.0.0.1

and I made sure that dhcpcd wouldn’t rewrite my /etc/resolv.conf file by adding the line

dhcpcd_eth1=”-R”

to the file /etc/conf.d/net. Finally, restart your network by

/etc/init.d/net.eth0 restart

or

/etc/init.d/net.eth1 restart

like here where for some reason I have eth1 has my network adapter.

No Comments »

No comments yet.

Leave a comment

Warning: When entering a long comment, please ensure that you make copy of your text prior to submitting it. If the server should fail or if you hit a bug, you might lose your work. I am not responsible for your lost effort.

To spammers: I carefully review every single post and make sure that spam gets deleted. You are wasting your time if you are manually entering spam using this form. Read my terms of use to see what I consider to be abusive.

Example: duo plus septem is '9'. The numbers are expressed in latin numerals but you should give your answers using ordinary digits.

 

« Blog's main page

Powered by WordPress