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

Static dhcp leases with alias

Scheduled Pinned Locked Moved DHCP and DNS
6 Posts 2 Posters 3.4k 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.
  • M
    MisterE
    last edited by Feb 13, 2012, 7:08 PM

    I give my systems a name based on the MAC address of the machine so i can use the name to access machines on the network.
    This is a "formal" name. I like to add a alias name to some systems, these names are easier to remember.
    Is this possible?

    1 Reply Last reply Reply Quote 0
    • W
      wallabybob
      last edited by Feb 13, 2012, 8:33 PM

      The pfSense DNS forwarder allows multiple names for the one IP address.

      1 Reply Last reply Reply Quote 0
      • M
        MisterE
        last edited by Feb 13, 2012, 9:31 PM

        thanks,
        i've added some lines "host overrides"
        Now i have the following "problem". Can i add the same alias to multiple IP's here?
        My laptop has two interfaces (wireless/lan) so i like to create a list like below:

        lenovo  localdomain  192.168.3.100 
        thinkpad  localdomain  192.168.3.100
        laptop localdomain  192.168.3.100
        lenovo  localdomain  192.168.1.100 
        thinkpad  localdomain  192.168.1.100
        laptop localdomain  192.168.1.100

        1 Reply Last reply Reply Quote 0
        • W
          wallabybob
          last edited by Feb 13, 2012, 10:18 PM

          @MisterE:

          Can i add the same alias to multiple IP's here?

          Do you want laptop to resolve to multiple IP addresses as in the following example:

          
          $ dig www.google.com
          
          ; <<>> DiG 9.6.2-P2 <<>> www.google.com
          ;; global options: +cmd
          ;; Got answer:
          ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 6261
          ;; flags: qr rd ra; QUERY: 1, ANSWER: 6, AUTHORITY: 0, ADDITIONAL: 0
          
          ;; QUESTION SECTION:
          ;www.google.com.			IN	A
          
          ;; ANSWER SECTION:
          www.google.com.		596527	IN	CNAME	www.l.google.com.
          www.l.google.com.	271	IN	A	74.125.237.82
          www.l.google.com.	271	IN	A	74.125.237.84
          www.l.google.com.	271	IN	A	74.125.237.80
          www.l.google.com.	271	IN	A	74.125.237.81
          www.l.google.com.	271	IN	A	74.125.237.83
          
          ;; Query time: 256 msec
          ;; SERVER: 127.0.0.1#53(127.0.0.1)
          ;; WHEN: Tue Feb 14 07:57:14 2012
          ;; MSG SIZE  rcvd: 132
          
          $ 
          
          

          The GUI doesn't allow multiple DNS forwarder entries for the same host/domain pair.

          1 Reply Last reply Reply Quote 0
          • M
            MisterE
            last edited by Feb 13, 2012, 10:31 PM

            i don't understand. What i'm trying to reach:

            when i plug in the network cable in my laptop i want to reach the device from another system with the hostnames: laptop,thinkpad
            i like to use the same hostnames when i'm wireless connected.

            (maybe i can do something with different domains?, i take a look tomorrow)

            1 Reply Last reply Reply Quote 0
            • W
              wallabybob
              last edited by Feb 13, 2012, 11:42 PM

              The pfSense GUI allows the same IP address to be assigned to different MAC addresses. In pfSense you could bridge your wireless LAN and wired LAN (then your laptop wired interface and wireless interface will be in the same subnet and can be assigned the same IP address). You might have good reasons for not wanting to bridge the interfaces.

              You haven't said that 192.168.1.100 and 192.168.3.100 are in different subnets - I assumed that. What is the network mask associated with those IP addresses?

              In summary, what you could do is (in DHCP) assign the same IP address to the wired MAC address and wireless MAC address of the laptop and (in DNS forwarder) assign names thinkpad, lenovo and laptop to that IP address. What the GUI interface to DNS forwarder doesn't allow is assigning the same name to two different IP addresses.

              1 Reply Last reply Reply Quote 0
              6 out of 6
              • First post
                6/6
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                This community forum collects and processes your personal information.
                consent.not_received