Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
a problem with dhcpcd; another one with ssh
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6193

PostPosted: Wed Sep 10, 2014 4:50 pm    Post subject: a problem with dhcpcd; another one with ssh Reply with quote

1. I'm on dhcp. My ISP seems very Windows oriented. dhcp returns two domain name servers - one is a real DNS and puts a 'nameserver' line in resolv.conf, the other is that Windows specific thing, that puts only a 'domainname' line there. How can I configure dhcpcd to ignore the second one ?

2. While on LAN, I've got two machines that have ssh and /etc/hosts configured the same way (well, AFAICT). I can ssh from one to the other using an alias I've put in /etc/hosts, but not in the other direction - it times out. As ssh via ip address works both ways, it seems to be a lookup problem. Does anyone have an idea where it may lie ?
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6737
Location: Blighty

PostPosted: Wed Sep 10, 2014 5:19 pm    Post subject: Re: a problem with dhcpcd; another one with ssh Reply with quote

VoidMage wrote:
1. I'm on dhcp. My ISP seems very Windows oriented. dhcp returns two domain name servers - one is a real DNS and puts a 'nameserver' line in resolv.conf, the other is that Windows specific thing, that puts only a 'domainname' line there. How can I configure dhcpcd to ignore the second one ?


Do you mean something like this?
Code:

domain a_name_here
nameserver 1.2.3.4


If so, that's 100% correct for UNIX as well. It's basically a shortcut, so you if query for the host foo it will first try foo and then foo.a_name_here.

Quote:

2. While on LAN, I've got two machines that have ssh and /etc/hosts configured the same way (well, AFAICT). I can ssh from one to the other using an alias I've put in /etc/hosts, but not in the other direction - it times out. As ssh via ip address works both ways, it seems to be a lookup problem. Does anyone have an idea where it may lie ?


See what your computer things of the alias.
Code:

ping alias


Replace alias with the real alias and verify it's the IP address you expect.
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6193

PostPosted: Wed Sep 10, 2014 8:12 pm    Post subject: Reply with quote

1. well, the thing is (not 100% sure whether it was 'domainname' or domain'; would need to reboot to recheck, cause it's enough for me to run 'dhcpcd -n <interface name>' to get the right setting) that no line with 'nameserver' is present if I get the wrong server (it's that wins server thing, I think)
2. ping does return the proper address - it is as if ssh and ping were resolving the name on different paths
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6737
Location: Blighty

PostPosted: Wed Sep 10, 2014 8:33 pm    Post subject: Reply with quote

ssh also has a config file where you can specficy more aliases

~/.ssh/config

Is there an error there?
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6193

PostPosted: Thu Sep 11, 2014 8:19 am    Post subject: Reply with quote

No such file exists on either of machines and the one in /etc/ssh/ is at defaults.

...

Never mind. ssh "problem" was a dumb typo on my part - I've switched the order of two numbers (168 vs 186).

Now, any ideas about dhcpcd one ?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum