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

    How to register a host ip without the domain (short FQN)

    Scheduled Pinned Locked Moved DHCP and DNS
    2 Posts 2 Posters 1.2k 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.
    • R Offline
      rdpdo
      last edited by

      Hi,

      My name is Alex and i live in France.

      Imagine I have a domain called mydomain.com and a computer called SRV1.

      I register an entry to the DNS Forwarer, if I add : SRV1 , domaine mydomain.com, IP=172.16.100.100.

      I can now ping SRV1.mydomain.com.

      But how can I do for be able to ping just "SRV1" => PING SRV1 … ????

      I have test using /etc/resolv.conf adding a line "SRV1 172.16.100.100" but it not worked :(

      Can someone help me ? Thanks a lot.
      Regards.

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

        so if using mydomain.com as your search domain – if you query for just srv1 then client would auto added mydomain.com to the query.

        If your wanting just a host enty for srv1, that would not go in resolv.conf -- that would be in host file on either client or pfsense.  And would be IPaddress then hostname

        like
        172.16.100.100 SRV1

        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 25.07.1 | Lab VMs 2.8.1, 25.07.1

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