ping does not resolve name while nslookup does
location: linuxquestions.com - date: November 5, 2004
Dear All,
I have just installed an shiny new Suse Linux 9.1 with 2.6.4 kernel. I have configured my eth0 interface with fix IP address and all DNS settings & stuff. Now when I try to ping a server in my LAN, its name is not resolved. But when I use nslookup or host command it does. Like so:
bridgetown:/etc # ping ontario
ping: unknown host ontario
bridgetown:/etc # host ontario
ontario.adelior.local has address 192.168.5.55
I am puzzled...
While I run the two commands above, I have a tcpdump running in a second session. That shows the following:
bridgetown:~ # tcpdump -l -n -i eth0 'port 53'
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes
14:34:15.327912 IP 192.168.5.23.32922 > 192.168.5.11.53: 19967+ A? ontario. (25)
14:34:15.328323 IP 192.168.5.11.53 > 192.168.5.23.32922: 19967 ServFail 0/0/0 (25)
14:34:15.329125 IP 192.168.5.23.32922 > 192.168.5.18.5
ping does not resolve the host always appends a domain
location: linuxexchange.com - date: January 1, 1970
The problem seems to be relatively easy, but I can't find good solution.
Configuration
I have local DHCP and DNS server running on ADSL router. It assigns IP addresses to local hosts and also keeps DNS records for assigned IPs.
This modem also registers itself via DynDNS services.
Let's assume I have no control over this modem, as it serves several groups.
Problem
When I look the host via nslookup it works fine:
$ nslookup vanja
Server: 192.168.1.1
Address: 192.168.1.1#53
Name: vanja
Address: 192.168.1.12
but with ping it fails:
$ ping vanja
ping: unknown host vanja
This happens, because ping appends the local domain to the host, but DNS server does not know this domain (and I have no ways to set it), see strace output:
$ strace ping vanja
open("/lib/i686/cmov/libnss_dns.so.2", O_RDONLY) = 4
stat64("/etc/resolv.conf", {st_mode=S_IFREG|0644, st_size=23, ...}) = 0
socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4
connect(4, {sa_family=AF_INET, sin_p
windows does not resolve linux hostname
location: linuxquestions.com - date: May 17, 2004
I have 3 linux boxes on a mostly windows machines lan.
We run dhcp. I have not got access to the dhcp machine.
From my linux boxes i can resolve all the windows machines by name.
However if i try to ping the linux boxes by name it does not resolve and
comes back with unknown host.
We get our dns info from the dhcp server.
How do I configure my linux boxes to tell the dhcp server to update the dns
server with their names?
Thanks
DNS does not resolve
location: ubuntuforums.com - date: July 22, 2010
I've had this problem forever, but now it's become a work issue and not just personal.
I cannot ping any hostnames on our LAN
/etc/resolv.conf has both name servers configured correctly. I can ping the IP, but can't ping the hostname. I know it's something really simple, just can't put my finger on it.
I can ping www.google.com and external addresses...those resolve.
Network manager does not find dns while VPN'ed
location: ubuntuforums.com - date: April 16, 2012
Hello,
I am running Ubuntu 11.10 and installed network-manager-gnome with all available addons from the software center. I imported a pcf file for the VPN. When selecting the VPN at work or home, it shows that VPN is connected.
While I am at home I am able to connect to the machines on the other names. When i'm at work, I am not. I think it's because the client is not finding the DNS server. Is there a reason for that? When I ran the network manager in Fedora 16 it was able to find the DNS at my job and home.
Thanks.
Deferred does not resolve in Angular version 1.2.2
location: linuxexchange.com - date: December 1, 2013
When google is to slow, ask stackoverflow... For some reason I can't find something about this issue:
I read this tutorial, which led me to this plunk. For some reason deferreds didn't work in the project I just created using yo generator-angular, even after I copied the code directly from the plunk. Finally I found out, that I was using angular version 1.2.2, while the plunk used 1.1.5.
The real problem seems to be that deferred.resolve doesn't work as expected (not at all). You can see this behavior, after you switch the version in the plunk to 1.2.2. Strange enough the UI is being updated with 3(?) objects.
EDIT: I also found out that changing the controller to set the property within the promises then() function works fine. So version 1.2.2 simply doesn't allow do bind promises directly, like $scope.message = HelloWorld.getMessages(), anymore. Why is that? Also the interface of the promise changed, not have an always function anymore. Is this the cause?
I liked it better before
Why does postinst script not execute commands while installing a debian package through Ubuntu software centre?
location: linuxexchange.com - date: January 23, 2015
I have created a debian package and added the following code in the postinst script:
path="$HOME/sample"
echo "$path"
if [ -d "$path" ]
then
rm -rf "$path"
echo 'File deleted successfully :)'
fi
so that if the path is present, it would delete it during installation. It works perfectly when I install my .deb package through dpkg. But while installing through Ubuntu software centre, none of it works. Why does this happen?
For background, I have made an app that would create a directory in the home directory of the user or root installing to the system .So if I am reinstalling or installing again after uninstalling, I need to check if the directory is present or not; if present, I need to delete it. I have distributed the app as a Debian package. So the question is how to check if the directory is present in the home directory? The directory is not created while installing the app. It is externally created while running the app. Also note that I cannot change it to a different folde
DNS (named) zone file loads correctly but does not resolve
location: linuxexchange.com - date: January 13, 2010
I have a very strange problem that I not able to figure out.
On my server I host two applications with two different domains:
1. onlinelogistics.eu
2. resursecrestine.org
I also host a DNS server (fedora server) that I configured to resolve these two domains.
The problem is that only the first domain resolve and the other does not.
The zone file for 'onlinelogistics.eu' is:
onlinelogistics.eu. IN SOA ns1.onlinelogistics.eu. root.onlinelogistics.eu. (
1194130303
10800
3600
604800
38400 )
@ IN NS onlinelogistics.eu.
onlinelogistics.eu. IN NS ns1.onlinelogistics.eu.
onlinelogistics.eu. IN NS ns2.onlinelogistics.eu.
ns1.onlinelogistics.eu. IN A 85.25.124.83
ns2.onlinelogistics.eu. IN A 85.25.124.83
onlinelogistics.eu. IN A 85.25.124.83
www.onlinelogistics.eu. IN
aptget install f does not resolve dependencies
location:
linuxexchange.com - date:
January 1, 1970
I am on Ubuntu docker container
one line in docker file
RUN apt-get -y -f install libgdal1h
results in
Step 14 : RUN apt-get -y -f install libgdal1h
---> Running in 10b9065694f0
Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libgdal1h : Depends: libarmadillo4 but it is not going to be installed
Depends: libhdf5-7
Depends: libnetcdfc7 but it is not going to be installed
Ubuntu image is just official image (in dockerfile):
FROM ubuntu:trusty
the whole dockerfile (just for reference)
FROM ubuntu:trusty
MAINTAINER Helmi Ibrahim <
[email protected]>
RUN echo "deb http://archive.ubuntu.com/ubuntu trus
JAR file does not play sound while Eclipse does
location: linuxexchange.com - date: January 19, 2013
I have a project that I want to export as a jar file. The software is supposed to play a sound at a certain point in time. However, the problem is that the JAR file does not play the sound file when that point in time is reached. When I run the same project from the Eclipse IDE, it does.
Here is the code that shows how I setup the sound playback capabilities:
public void setupSoundPlayback(){
try{
buzzer = AudioSystem.getClip();
in = AudioSystem.getAudioInputStream(BatteryBeeper.class.
getResourceAsStream("/sound/boing_x.wav"));
buzzer.open(in);
}catch(Exception e){
e.printStackTrace();
}
}
Later, I call the play() method of Clip object.
Although I am using the getResourceAsStream() method to play embedded sound, the JAR does not play the sound.
As I was told to extract and see if the sound file was at its proper place, I did. Here is what I got. The sound folder is in the ro
please wait...
Page: 1 2 3 4 5 6 7 8 9 10