[ Date Index ][
Thread Index ]
[ <= Previous by date /
thread ]
[ Next by date /
thread => ]
On 26.02.2004 10:11 John Horne wrote:
On Wed, 2004-02-25 at 18:14, Darke, Clive wrote:There are several options. Look at gethostbyname, perldoc -f gethostbyname will give you the doc. Also look at Net::hostent (standard module), man Net::hostent contains some examples.No, that works by using the /etc/hosts or dns. I want something that in effect looks at 'ifconfig' and says 'lo = 127.0.0.1', 'eth0 = 10.1.2.3', etc, etc.
Don't you have a look in /etc/sysconfig/network-scripts/ifcfg-eth0, or what ever it is called? -- The Mailing List for the Devon & Cornwall LUG Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the message body to unsubscribe.