Networking Forums

Networking Forums > Computer Networking > Linux Networking > unable to resolve aliased network interface name

Reply
Thread Tools Display Modes

unable to resolve aliased network interface name

 
 
ziupiu
Guest
Posts: n/a

 
      11-03-2004, 06:04 PM
Hello all and sorry for my poor english knowledge.
an old network application being ported from Digital Unix 4.0F to
Linux (kernel 2.4.7) needs resolving all the interfaces names (eth0,
eth1), including aliased interfaces names like eth0:0, according to
/etc/hosts, e.g.:

10.10.10.10 eth0 my:test host1010
10.10.11.11 eth0:0 host1111

The issue (unknown host) arise when resolving the name 'eth0:0' and
not when resolving 'my:test', from which I only argue that the problem
is not in ':' symbol, it is in all names starting with 'eth0:'.

I will appreciate if anyone has a solution that doesn't involve
changing application sources.

TIA
 
Reply With Quote
 
 
 
 
Davide Bianchi
Guest
Posts: n/a

 
      11-03-2004, 06:07 PM
On 2004-11-03, ziupiu <(E-Mail Removed)> wrote:
> eth1), including aliased interfaces names like eth0:0, according to
> /etc/hosts, e.g.:
>
> 10.10.10.10 eth0 my:test host1010
> 10.10.11.11 eth0:0 host1111


AFAIK the first alias for an interface is 1 not 0, so you have eth0:1,
not eth0:0, and /etc/hosts does not contains indication of the
interface, only IP and names.

man hosts

Davide

--
The word "Windows" is a word out of an old dialect of the Apaches. It
means: "White man staring through glass-screen onto an hourglass..."
 
Reply With Quote
 
Peter T. Breuer
Guest
Posts: n/a

 
      11-03-2004, 07:39 PM
Davide Bianchi <(E-Mail Removed)> wrote:
> On 2004-11-03, ziupiu <(E-Mail Removed)> wrote:
> > eth1), including aliased interfaces names like eth0:0, according to
> > /etc/hosts, e.g.:
> >
> > 10.10.10.10 eth0 my:test host1010
> > 10.10.11.11 eth0:0 host1111

>
> AFAIK the first alias for an interface is 1 not 0, so you have eth0:1,


You do not know far enough here .. it is "0".

> not eth0:0, and /etc/hosts does not contains indication of the
> interface, only IP and names.


Sure. That's correct. His hosts file is AFU.

Peter
 
Reply With Quote
 
ziupiu
Guest
Posts: n/a

 
      11-04-2004, 05:06 AM
(E-Mail Removed) (Peter T. Breuer) wrote in message news:<c9sn52-(E-Mail Removed)>...
> Davide Bianchi <(E-Mail Removed)> wrote:
> > On 2004-11-03, ziupiu <(E-Mail Removed)> wrote:
> > > eth1), including aliased interfaces names like eth0:0, according to
> > > /etc/hosts, e.g.:
> > >
> > > 10.10.10.10 eth0 my:test host1010
> > > 10.10.11.11 eth0:0 host1111

> >
> > AFAIK the first alias for an interface is 1 not 0, so you have eth0:1,

>
> You do not know far enough here .. it is "0".
>
> > not eth0:0, and /etc/hosts does not contains indication of the
> > interface, only IP and names.

>
> Sure. That's correct. His hosts file is AFU.
>
> Peter


Thanks for replies.
I know my /etc/hosts may seem AFU, the issue here is only with that
old application; this needs resolving interface names (no problem),
including aliased ones (THE problem).
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SO_BINDTODEVICE socket option on an aliased interface Christophe Lohr Linux Networking 4 01-23-2009 09:19 PM
Unable to resolve name on server help Ferdy Wireless Internet 1 01-02-2007 01:54 PM
Howto resolve which interface a NIC's is mapped to ( nic2if ) jakobsg@gmail.com Linux Networking 11 10-21-2006 11:42 AM
Unable to resolve hostname Paul R Windows Networking 0 12-22-2003 07:02 PM
TCP/IP in win98 unable to resolve any domain name on some systems Henry B Windows Networking 1 07-25-2003 04:41 AM



1 2 3 4 5 6 7 8 9 10 11