Re: local dns problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Gene Heskett wrote:
On Friday 04 August 2006 08:34, Paul Howarth wrote:
Gene Heskett wrote:
Greetings;

My local home network runs with most of its machines having fixed
addresses, referenced in their host files.

But I do have a dhcp server setup for when ever my lappy is powered up
and logs in thru a wap11 from its builtin broadcom radio.

How can I rig my dns lookups so that I can still ssh into this lappy by
its name, diablo.coyote.den when its given a dynamic address by dhcpd? As it is, I have to goto the lappy and run an ifconfig to find its
address and ssh to that.  Cumbersome.
Might be easier to have your DHCP server assign your laptop the same
address every time. That's what I do on my home network.

I'd assume that would be by linking the MAC address to its host file address somehow, but I'm afraid I need tutoring on that.

You do use the MAC address, yes. The dhcpd.conf file maps a MAC address to an IP address, and your hosts files do the mappings between IP addresses and hostnames.

So you'd use a dhcpd.conf file like this:

subnet 192.168.2.0 netmask 255.255.255.0 {
        range 192.168.2.20 192.168.2.31;
        option domain-name-servers 192.168.2.11, 192.168.2.1;
        option subnet-mask 255.255.255.0;
        option broadcast-address 192.168.2.255;
        option domain-name "intra.city-fan.org";
        option routers 192.168.2.11;
}

group {
        host badby            { hardware ethernet 00:80:c8:64:9f:51;
                                fixed-address 192.168.2.1;}
        host laurel           { hardware ethernet 00:80:c8:64:5b:c2;
                                fixed-address 192.168.2.2;}
        host station          { hardware ethernet 00:05:5d:03:3b:fd;
                                fixed-address 192.168.2.3;}
        host xylaptop         { hardware ethernet 00:00:86:4e:6f:e6;
                                fixed-address 192.168.2.6;}
        host goalkeeper       { hardware ethernet 00:e0:4c:01:6d:a8;
                                fixed-address 192.168.2.11;}
}


Note that the group of hosts with fixed IP addresses are assigned IP addresses outside the range specified in the "range" clause that the server uses for dynamic IP allocation.

You then have hosts files entries for the hosts with fixed IP addresses.

Paul.

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux