On Fri, May 20, 2005 at 01:55:27PM +0100, Matt Parker wrote:
Can't do this as I use multiple ISPs and the DNS server will change according to which ISP I'm connected to. The resolv.conf (or equivalent) on all my machines is set to point to the router which passes on DNS requests to whatever IPS it happens to be connected to.
That's the same thing - at the end of the day every time you query for server.isbc.co.uk you're asking for the IP address from your ISP's nameserver. This will then query your nameserver for it. This is why you need the aliases in there to replace your hosts files.
Ah, no! Now I understand what your saying and it's not the way my system is, my situation is decidedly different.
I had the same problem when I used Demon back in the old days.
My domain isbd.co.uk (also isbd.net actually) is hosted on a remote machine which is a hosting service where my company's web pages are hosted. I.e. a 'whois' for isbd.co.uk returns (among other things):-
Domain Name: isbd.co.uk
Registrant's Agent: B S Net Ltd [Tag = BSNET] URL: http://www.bsnet.co.uk/
Name servers listed in order: dns0.bsnet.co.uk 82.133.91.19 dns1.bsnet.co.uk 82.133.91.20 dns2.bsnet.co.uk 212.135.230.213
The name isbd.net is also hosted on the same remote system and the sysadmin there has set me up a sub-domain home.isbd.net that points to my router which has a static IP 84.51.144.229.
So, I want to be able to resolve names on my local LAN somehow but without confusing the outside world. The machines on my LAN behind the router don't have any real DNS names and have private IP addresses, I want a way to give them short names that I can use while not confusing the outside world when it tries to connect to my Web server (for example) at http://home.isbd.net/.
At the moment my /etc/hosts with xxx.isbd.co.uk names in it seems to confuse things totally, which is why I asked the original question.