Difference between revisions of "Linux networking"
Jump to navigation
Jump to search
(→Related Pages: resolv.conf) |
(→Related Pages: more stuff) |
||
Line 7: | Line 7: | ||
* [[dnsmasq]] is a [[daemon]] for providing [[DNS]] and [[DHCP]] services on a [[Linux]] server. It can be used to replace those services typically provided by residential router/gateway hardware, but with much more flexibility (and without having to lose the network connection whenever a change is made). | * [[dnsmasq]] is a [[daemon]] for providing [[DNS]] and [[DHCP]] services on a [[Linux]] server. It can be used to replace those services typically provided by residential router/gateway hardware, but with much more flexibility (and without having to lose the network connection whenever a change is made). | ||
* [[nsswitch.conf]] tells [[Linux]]'s [[domain name resolver]] what methods to use for resolving [[domain name]]s both within the local network (if any) and on the internet. Among the choices are DNS (best for internet domain names) and WINS (often used for [[Windows (Microsoft)|Windows]]) | * [[nsswitch.conf]] tells [[Linux]]'s [[domain name resolver]] what methods to use for resolving [[domain name]]s both within the local network (if any) and on the internet. Among the choices are DNS (best for internet domain names) and WINS (often used for [[Windows (Microsoft)|Windows]]) | ||
− | * [[resolv.conf]] is the [[domain name resolver]] configuration file | + | * [[resolv.conf]] is the [[domain name resolver]] configuration file; it can be edited by hand, but if the network connection is being managed by DHCP (typically using [[dhclient]]), manual changes will be overwritten. |
* [[Samba]]: when communication with [[Windows (Microsoft)|Windows]] is part of the picture, the configuration of Samba may be relevant. | * [[Samba]]: when communication with [[Windows (Microsoft)|Windows]] is part of the picture, the configuration of Samba may be relevant. | ||
* [[WINS]] is the protocol used to convert [[Windows (Microsoft)|Windows]] SMB names into (usually [[local IP address|local]]) IP addresses | * [[WINS]] is the protocol used to convert [[Windows (Microsoft)|Windows]] SMB names into (usually [[local IP address|local]]) IP addresses | ||
+ | * Commands for resolving domain names (and machine names) to IP addresses: | ||
+ | ** {{linuxcmd|net}} is intended for use with Samba machine names, but works with domain names | ||
+ | ** [[nslookup]] | ||
+ | ==Notes== | ||
+ | * When you run "/etc/init.d/networking restart", it only invokes [[dhclient]] for interfaces (network cards) which have the "dhcp" attribute. If you invoke dhclient manually on a card with a static IP address signed, it will use DHCP to assign the card an address (usually not the same one). Running "/etc/init.d/networking restart" again will revert to the static IP. |
Revision as of 15:21, 21 December 2006
computing: software: operating systems: Linux: networking
Overview
This is a general guide to Linux networking, mostly as a collection point for links to relevant articles.
Related Pages
- dhclient (a.k.a. dhcpcd) is the Linux program which manages the conversation with a DHCP server and thereby sets the client's IP address and other related settings.
- dnsmasq is a daemon for providing DNS and DHCP services on a Linux server. It can be used to replace those services typically provided by residential router/gateway hardware, but with much more flexibility (and without having to lose the network connection whenever a change is made).
- nsswitch.conf tells Linux's domain name resolver what methods to use for resolving domain names both within the local network (if any) and on the internet. Among the choices are DNS (best for internet domain names) and WINS (often used for Windows)
- resolv.conf is the domain name resolver configuration file; it can be edited by hand, but if the network connection is being managed by DHCP (typically using dhclient), manual changes will be overwritten.
- Samba: when communication with Windows is part of the picture, the configuration of Samba may be relevant.
- WINS is the protocol used to convert Windows SMB names into (usually local) IP addresses
- Commands for resolving domain names (and machine names) to IP addresses:
Notes
- When you run "/etc/init.d/networking restart", it only invokes dhclient for interfaces (network cards) which have the "dhcp" attribute. If you invoke dhclient manually on a card with a static IP address signed, it will use DHCP to assign the card an address (usually not the same one). Running "/etc/init.d/networking restart" again will revert to the static IP.