Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Recommended local naming for host with several interfaces?

    Scheduled Pinned Locked Moved DHCP and DNS
    2 Posts 2 Posters 642 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E
      eduardr
      last edited by

      Some of the hosts on the LAN have several interfaces, for different purposes.

      For ex. host1 has an interface for general use, one for ipmi (management), and one for fast transfers (sfp+)

      Currently I'm using dhcp names:
      host1 (the normal interface mac address)
      host1-fast (the sfp interface mac address)
      host1-ipmi (the mgmt interface mac address).

      Is this the recommended approach? It bothers me slightly to use these different names in this way because the host name is more correctly just "host1" in all 3 cases. The DHCP server does not allow using host names with a period such as "host1.ipmi" or "host1.fast" because it considers the second part to be a domain name. And I don't see a way to create 3 local sub-domain names such as " . ", " .fast ", and " .ipmi"

      Thanks in advance for any suggestions!
      –Ed

      1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator
        last edited by

        .fast and .ipmi would not be subdomains…  host1.fast.domain.tld would make fast a sub domain or host1.ipmi.domain.tld

        I have these sorts of names for pfsense different interfaces so when you do a PTR you get back the correct ip for that interface..

        C:>dig pfsense.dmz.local.lan +short
        192.168.3.253

        C:>dig -x 192.168.3.253 +short
        pfsense.dmz.local.lan.

        Since your setting static, you can just do an override for whatever name you want for each of those IPs.

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.8, 24.11

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.