Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 07-21-2016, 03:17 AM   #1
Thomas Korimort
Registered: Jul 2016
Location: 2640 Enzenreith, Austria
Distribution: Debian/Raspbian
Posts: 63

Rep: Reputation: Disabled
Dynamic DNS with router update - How to configure DNS name server?

I have the following situation:

I have a 4G LTE router that gets a dynamic IP from my ISP. In order to get a public IP i had to activate a free configuration option in my ISPs customer zone called "OpenInternet". Before that the public IP of my router was different to the 10.x.x.x address it got awarded from the ISP. Thus it was not making any sense to assign this private IP to a free dynamic host name from NoIP. Otherwise, after i had solved that problem my routers firmware knew how to automatically update its current IP address to NoIP provider of dynamic (managed) DNS. By that construction wanted to avoid the costs of leasing a static IP from my ISP and maybe also registering my own domain (in which case i also would not have known how to configure it properly).

Now i could access my server that is behind my router in a LAN 192.168.x.x even with ssh from outside by using port forwarding and port opening in the routers firewall. However, my apache2 still has problems and it always complains about non-resolved DNS and problems with DNS resolution, when using my dynamic DNS-name to test access from outside by let us say one Website speed test in the internet: . Since my router uses itself html-configuration it also blocks port 80 on the dynamic DNS and it made itself to be the host to which the dynamic DNS resolves. Thus i forwarded port 8080 to 80 on my apache2 server and this seemed to work, but the DNS resolution still did not work reportedly by the apache. Now i was concluding, that this is an issue with DNS resolution and now i am trying to setup a DNS name server couple on two of my local RaspBerrys. My internal devices that i care about use all static IPs so i could simply enter them into DNS configuration files, but what to do about the dynamically updated DNs? My router automatically updates its IP. Thus i don't need to update that. Do i still need to install a DHCP server alongside with the DNS server in order to deal properly with that dynamically managed DNS? What should i write in the reverse-DNS section in DHCP config? When determining my reverse DNS by let us say seraching for the current IP x.x.x.x of my router at i get

but actually the IP is assignet to by a No-IP account, which is updated by the routers firmware.


// Add local zone definitions here.
zone "network.athome" {
type master;
file "/etc/bind/";
allow-update { key "rndc-key"; };
notify yes;

zone "" {
type master;
file "/etc/bind/db.192.168.0";
allow-update { key "rndc-key"; };
notify yes;

include "/etc/bind/rndc.key";

and /etc/dhcp3/dhcpd.conf:

# Basic stuff to name the server and switch on updating
server-identifier server;
ddns-updates on;
ddns-update-style interim;
ddns-domainname "network.athome.";
ddns-rev-domainname "";
ignore client-updates;

# This is the key so that DHCP can authenticate it's self to BIND9
include "/etc/bind/rndc.key";
Old 07-25-2016, 08:57 AM   #2
Senior Member
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,112

Rep: Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256
Seems like overkill. You should be able to put the servers name in /etc/hosts and forward all other name requests. Make sure you follow this advice in your config:


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to configure Name server using Dynamic dns Ravinder Singh Thakur Linux - Server 2 01-01-2010 12:05 PM
How to configure IPv6 DNS server in RHEL4 update 4 ? sunnyanthony Linux - Server 3 06-05-2008 05:13 AM
how to configure master dns in windows2003 server and its slave dns in rhel5 suneellinux Linux - Newbie 1 04-11-2008 06:13 PM
How to Update dynamic DNS with DHCP router? longblock454 Linux - Networking 4 05-18-2004 07:21 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:53 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration