VMware {code} Community
DanishDyna
Contributor
Contributor

Enable vSphere LAB change internet connection - DHCP Hooks in Photon reporting Dynamic DNS address

Question
Please direct me to info on DHCP Hooks - to report Dynamic DNS address change.

Urgency situation - enabling Dynamic DNS
My nested vSphere LAB is subject to Internet change from home/work/girl commute. I whant to use Dynamic DNS (ydns.eu) to reflect my external IP Address for peer and support LAB access.

Dynamic DNS change - Photon DHCP Hooks
DNS Change code that must be called when new DHCP lease is detected. DHCP Hooks seems the natural place - but HOW?

curl --basic -u "--usr--:--pwd--" https:// ydns.io/api/v1/update/?host=lab.ydns.eu&ip=8.8.8.8

LAB Setup - Networking
LAB is isolated using router (Photon OS) to route to Internet network (NET Fence) - inspired by Virtuallyghetto blogs.

The vSphere LAB "NET Management" is isolated on 192.168.10.0 - Internet connection defined by:

  • Win10 Network Adapter "VMware Virtual Ethernet Adapter for VMnet2" properties point to vSphere LAB
    ip(182.168.10.80), gw(192.168.10.1), dns(192.168.10.1), domain(lab.local).

  • Router and DNS service (Photon OS 3.0) routing internet (NET Fence) to 4 networks (Manage, VM, vMotion, vSAN).
    ip(182.168.10.1), gw(internet/DHCP), dns(internet/DHCP), domain(lab.local).

DHCP is my friend and I changed internet once an hour to insure my LAB has minimal external configuration items.

Rgds Henrik

Labels (5)
0 Kudos
0 Replies