Friday, July 31, 2009

Linux storing IP address configuration information?

I'm trying to conduct research on how Linux stores IP address configuration information, also, where and in which files the DNS server and domain suffix information are stored.





This is for the developement of a graphical network configuration utility for Linux.





If anyone can give me some info or some decent sites I could use to conduct research.





Also, I'm also unsure as to which of the programming languages would be best to use between:





Visual C# under the .NET framework on a windows system


or


C++ with Trolltech's QT on a Linux server.





All help is greatly appreciated.

Linux storing IP address configuration information?
Configuration files are kept in /etc.





/etc/resolv.conf for DNS


/etc/hosts for static mapppings


/etc/networks for static network mappings





As for network configuration it is specific to the flavour of Linux.


Can be in /etc/network or in /etc/rc.d or somewhere else. You'll have to google for each flavour you want to support.





.Net is not appropriate for Linux development. Qt is good but you will have to release your code under the QPL unless you buy a license. Alternatives are Gtk+ and wxWindows.
Reply:Ok, to start from the bottom, why would you even consider writing this in a programming language not supported by Linux? None of the .Net crap will be good to use with Linux.





The file that DNS name servers are stored in is /etc/resolv.conf.





The networking information depends on the Linux Distro that you are using.


SuSE uses:


/etc/sysconfig/network/ifcfg-eth-id-%26lt;M... Address%26gt;


or


/etc/sysconfig/network/ifcfg--wlan-id-... Address%26gt;


Red Hat uses:


/etc/sysconfig/network-scripts/ifcfg-%26lt;... name%26gt;


Debian based systems use:


/etc/network/interfaces


and others.





Good luck.


John

rose

No comments:

Post a Comment