Static dhcp leases with alias

  • 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?

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

  • 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 
    thinkpad  localdomain
    laptop localdomain
    lenovo  localdomain 
    thinkpad  localdomain
    laptop localdomain

  • @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
    ; <<>> DiG 9.6.2-P2 <<>>
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 6261
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 6, AUTHORITY: 0, ADDITIONAL: 0
    ;			IN	A
    ;; ANSWER SECTION:		596527	IN	CNAME	271	IN	A	271	IN	A	271	IN	A	271	IN	A	271	IN	A
    ;; Query time: 256 msec
    ;; SERVER:
    ;; 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.

  • 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)

  • 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 and 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.

Log in to reply