Greetings LQ,
I am trying to set up dynamic DNS on my PC (not on Router) and I believe that I am hitting a roadblock in terms with network connectivity. I would greatly appreciate any pointers to the right direction, before I start tinkering with the Routers.
Expectation :
I wish to configure Dynamic DNS on my desktop PC, so that I can take an ssh session over the public IP. There are couple of KVMs residing within, which are to be used for practice. So I hope to ssh first to my PC, then start up the KVMs, connect to KVMs via ssh and then continue with practice.
Current Setup :
Attached is a crude netwrok diagram of my home network. Also, here's a
Link
(If this uploading site is considered unsafe, please advise which one to use !)
Both routers are wifi capable (so switching is easy). For the rest of this discussion, please treat the PC3 connected (wired) to Router 2 as intended machine.
What I have Done so far:
I started off with this tutorial:
https://www.howtogeek.com/66438/how-...ere-with-ddns/
The tutorials used a windows PC client, so I substituted the steps for linux client, followed from here:
https://www.dynu.com/DynamicDNS/IPUpdateClient/Linux
brief steps -
1. Created account on dynu and registered my PC's hostname (short name).
2. The updater client is designed for RHEL7 type OS. With minimal tweaks I was able to make it work on my Opensuse Leap 15. (created a soft link for /bin/dynuiuc at /usr/bin/dynuiuc and created the config file). Neither the logs nor the service/journals report any error.
3. A laptop connected to hotspot from mobile (to simulate an outside network) is unable to ping the PC with it's public IP or the DNS (freshly created at Dynu website). Lookup commands failed too.
Questions -
1. I wish to bind ssh port to something different(say 7956) than port 22 and I can make the changes on the PC. What do I need to do (port Forwarding??) on my router (please specify for Router 1 & Router 2 if needed)? [I have not changed the ssh configs yet, so right now it's 22.]
2. Since the DNS records stay with dynu, do I need to use their resolver ? Shouldn't the DNS record be automatically synced to other providers after some time?
(Edit:
Okay, I know now that it does. )
3. My home machines have a domain of, you guessed it, example.com. I do not have a kerberos/ldap/dns setup in my home network though, so the domain name is just part of the hostnames at the moment. [However, I may set these up at a later time ]. Since my domain name over public IP is different (say .dynu.xyz), do you sense a problem ahead ?
4. If you have already set this up, could you point me to a better/all-inclusive tutorial ? [I know I am being greedy here
]
Info:
1. PC Kernel version -> 4.12.14-lp150.12.45-default
2. Dynu Client version -> dynuiuc-2.6.2-2.x86_64
3. My short hostname has a '-' hyphen, which should not be much of a concern (right?). Checked here too -
https://tools.ietf.org/html/rfc952
Logs:
Unsure what I need to show here, but here's the
log from Dyn client.
Code:
Sun Feb 3 11:15:03 2019 [ENGINE] Status Code: No Change
Sun Feb 3 11:18:23 2019 [ENGINE] Checking if IP update is required.
Sun Feb 3 11:18:34 2019 [ENGINE] IP address update initiated.
Sun Feb 3 11:18:34 2019 [ENGINE] Status Code: No Change
Sun Feb 3 11:21:54 2019 [ENGINE] Checking if IP update is required.
Sun Feb 3 11:22:00 2019 [ENGINE] IP address update initiated.
Sun Feb 3 11:22:00 2019 [ENGINE] Status Code: No Change
Service Config:
Code:
# cat /usr/lib/systemd/system/dynuiuc.service
[Unit]
Description=Dynu IP update client daemon
[Service]
Type=forking
PIDFile=/var/run/dynuiuc.pid
ExecStart=/bin/dynuiuc --conf_file /etc/dynuiuc/dynuiuc.conf --log_file /var/log/dynuiuc.log --pid_file /var/run/dynuiuc.pid --daemon
ExecReload=/bin/kill -HUP $MAINPID
[Install]
WantedBy=multi-user.target
client updater config -
Code:
ab-desktop:/home/anirban/Downloads # cat /etc/dynuiuc/dynuiuc.conf
username SOMENAME
password SUPERSECRET
location
ipv4 true
ipv6 true
pollinterval 200
debug false
quiet false
Disclaimer :
No affiliation with Dynu. Just using their free service.