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