How can I add a local DNS entry to TG582n
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Broadband
- :
- Re: How can I add a local DNS entry to TG582n
How can I add a local DNS entry to TG582n
21-08-2014 6:07 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I have a small server at home and I have a domain name. My server is a small mail server that I use for testing and dealing with my families email accounts. I've added a host entry into my domains DNS record and that resolves fine but I would like computers on the LAN to resolve the host entry across to the server on the LAN instead of going outside the LAN to resolve the host.
I've been trying to add a dns host entry to the Technicolor TG582n router via the CLI through telnet.
I tried the following cli command but it fails and I'm not sure why:
dns server host add name=email.mydomainname.me.uk addr=192.168.1.20 ttl=30
But it fails stating:
Failed to add DNS host. [Name clash or invalid host name]
Does anyone know how to configure an internal LAN host entry so that my computers on the LAN can resolve the host to an ip on the LAN instead of resolving the external ip of the public DNS host entry?
Thanks,
Chris
Re: How can I add a local DNS entry to TG582n
21-08-2014 6:25 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
If you still wish to use a dns host entry, try using ".lan" in place of ".me.uk" .
Quote dns server host add name=email.mydomainname.lan addr=192.168.1.20 ttl=30
saveall
Re: How can I add a local DNS entry to TG582n
21-08-2014 7:05 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I would like to use the same host entry because some of the devices on my LAN are mobile and my host name externally resolves to the IP address of my internet connection. However, when those devices are back on the LAN then they should use the routers DNS and resolve to a local IP on the LAN instead.
When the computers on the lan query email.mydomainname.me.uk then they all resolve to the external IP which is incorrect and I don't really want to have to use .lan instead just for when the devices are back on the LAN.
I'll keep trying other things to get this to work. I may have to end up replacing the router with something more capable.
Thanks again,
Chris
Re: How can I add a local DNS entry to TG582n
21-08-2014 7:55 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Re: How can I add a local DNS entry to TG582n
21-08-2014 8:14 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Quote from: millerc
When the computers on the lan query email.mydomainname.me.uk then they all resolve to the external IP which is incorrect and I don't really want to have to use .lan instead just for when the devices are back on the LAN.
I only see that as a problem when/if the router has dropped the internet.
Why do you see it as incorrect?
Re: How can I add a local DNS entry to TG582n
21-08-2014 8:19 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I think the only way of doing this is to be able to edit a hosts file on the router (if there is one that can be edited).
Re: How can I add a local DNS entry to TG582n
21-08-2014 9:32 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Quote from: AndyH Incorrect in the sense that he wants to point the sub domain email.mydomainname.me.uk to the internal IP rather than the external IP when he is connected to his LAN.
But that's what the routers loopback adapter does. It will point the WAN IP back to the LAN IP.
If the Name and the servers LAN IP address are entered in the computers hosts file then that computer will not connect to the domain when on a different LAN.
This is no use if the device is used on other networks / internet connection (eg mobile phones).
Re: How can I add a local DNS entry to TG582n
21-08-2014 9:37 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Quote from: npr But that's what the routers loopback adapter does. It will point the WAN IP back to the LAN IP.
Got it thanks - so essentially the OP doesn't need to do anything?
Re: How can I add a local DNS entry to TG582n
21-08-2014 10:16 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
If you try to connect to your own WAN IP address, you only get as far as the routers WAN interface.
NATP then routes the connection back to the LAN IP address which is mapped to the connection port, that's assuming there's a port forward rule in place or UPnP is doing PF.
Re: How can I add a local DNS entry to TG582n
22-08-2014 11:55 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Thanks for all the help but this just doesn't seem to work.
When a machine on the LAN tries to access that host entry they just simply get the routers login page and nothing more. Changing host files on the mobile devices also won't work seemlessly.
It just seems that this device just won't do this for some reason. I can't spend any more time trying to get this to work so I think I'll just have to replace the router with a more capable one.
Thanks again guys.
Cheers,
Chris
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Broadband
- :
- Re: How can I add a local DNS entry to TG582n