Re: How to put a domain name on "eth0"?

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

 



Paul Howarth wrote:
Vinicius wrote:

Hello,

How to put a domain name on "eth0" manually, please?

The file "/etc/hosts" shows: "127.0.0.1 localhost.localdomain ajax.apto317 localhost ajax"

"ifconfig" shows "eth0" with a private address 10.X.X.X . I would like this address be "ajax.apto317".


Changing your /etc/hosts file as follows will probably do what you want:

127.0.0.1    localhost.localdomain localhost
10.X.X.X    ajax.apto317 ajax

While you are correct about chaning /etc/hosts file (for most of the utilities this will do the job), ifconfig will always show the IP address. Ifconfig should show IP configuration of network interface. No names on that level.


--
Aleksandar Milivojevic <amilivojevic@xxxxxx>    Pollard Banknote Limited
Systems Administrator                           1499 Buffalo Place
Tel: (204) 474-2323 ext 276                     Winnipeg, MB  R3T 1L7


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux