LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 05-23-2017, 09:31 AM   #1
uncle-c
Member
 
Registered: Oct 2006
Location: The Ether
Distribution: Ubuntu 16.04.7 LTS, Kali, MX Linux with i3WM
Posts: 299

Rep: Reputation: 30
VM Workstation . Kali Linux guest with DNS problems.


Greetz.
I'm having a strange problem using DNS. Kali is running as a guest on VM Workstation , Bridged network and HTTP, FTP, Ping connections all good. The odd thing is that I don't get the dig command to work using the default server ; when I use 8.8.8.8. as the server it works fine and I get the required answer ; however, the host command works perfectly using the default server

Code:
root@kali:~# cat /etc/lsb-release
DISTRIB_ID=Kali
DISTRIB_RELEASE=kali-rolling
DISTRIB_CODENAME=kali-rolling
DISTRIB_DESCRIPTION="Kali GNU/Linux Rolling"
root@kali:~# 
root@kali:~# uname -mrs
Linux 4.9.0-kali4-686-pae i686

Code:
root@kali:~# dig ANY google.com

; <<>> DiG 9.10.3-P4-Debian <<>> ANY google.com
;; global options: +cmd
;; connection timed out; no servers could be reached
Code:
root@kali:~# dig @8.8.8.8 ANY google.com

; <<>> DiG 9.10.3-P4-Debian <<>> @8.8.8.8 ANY google.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 63916
;; flags: qr rd ra; QUERY: 1, ANSWER: 17, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;google.com.			IN	ANY

;; ANSWER SECTION:
google.com.		299	IN	A	216.58.201.46
google.com.		299	IN	A	216.58.201.46
google.com.		299	IN	A	216.58.201.46
google.com.		299	IN	AAAA	2a00:1450:4009:80b::200e
google.com.		86399	IN	CAA	0 issue "pki.goog"
google.com.		86399	IN	CAA	0 issue "symantec.com"
google.com.		599	IN	MX	20 alt1.aspmx.l.google.com.
google.com.		599	IN	MX	10 aspmx.l.google.com.
google.com.		599	IN	MX	50 alt4.aspmx.l.google.com.
google.com.		59	IN	SOA	ns4.google.com. dns-admin.google.com. 156837621 900 900 1800 60
google.com.		599	IN	MX	40 alt3.aspmx.l.google.com.
google.com.		599	IN	MX	30 alt2.aspmx.l.google.com.
google.com.		3599	IN	TXT	"v=spf1 include:_spf.google.com ~all"
google.com.		86399	IN	NS	ns4.google.com.
google.com.		86399	IN	NS	ns1.google.com.
google.com.		86399	IN	NS	ns3.google.com.
google.com.		86399	IN	NS	ns2.google.com.

;; Query time: 523 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Tue May 23 15:11:49 BST 2017
;; MSG SIZE  rcvd: 447
Code:
root@kali:~# host -a google.com
Trying "google.com"
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 17256
;; flags: qr rd ra; QUERY: 1, ANSWER: 13, AUTHORITY: 0, ADDITIONAL: 4

;; QUESTION SECTION:
;google.com.			IN	ANY

;; ANSWER SECTION:
google.com.		298	IN	AAAA	2a00:1450:4009:809::200e
google.com.		291257	IN	NS	ns4.google.com.
google.com.		291257	IN	NS	ns1.google.com.
google.com.		291257	IN	NS	ns3.google.com.
google.com.		291257	IN	NS	ns2.google.com.
google.com.		222	IN	A	216.58.198.174
google.com.		222	IN	A	216.58.198.174
google.com.		222	IN	A	216.58.198.174
google.com.		312	IN	MX	50 alt4.aspmx.l.google.com.
google.com.		312	IN	MX	10 aspmx.l.google.com.
google.com.		312	IN	MX	40 alt3.aspmx.l.google.com.
google.com.		312	IN	MX	20 alt1.aspmx.l.google.com.
google.com.		312	IN	MX	30 alt2.aspmx.l.google.com.

;; ADDITIONAL SECTION:
ns4.google.com.		84568	IN	A	216.239.38.10
ns1.google.com.		83991	IN	A	216.239.32.10
ns3.google.com.		84078	IN	A	216.239.36.10
ns2.google.com.		83950	IN	A	216.239.34.10

Received 348 bytes from 192.168.0.1#53 in 94 ms
The nslookup command works fine too. It's puzzling.
 
Old 05-28-2017, 03:19 PM   #2
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,900

Rep: Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050
You did check your /etc/resolv.conf and verify its pointing to a valid name server?
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
I can't install vmware tools on kali guest badbackcom1 Linux - Software 7 08-13-2015 06:54 PM
Wont load fullscreen after installing VB Guest additions on kali kryyp Linux - Newbie 2 08-02-2015 12:45 PM
Problems in Kali Linux 1.0.7 criztian Linux - Newbie 2 06-18-2014 09:50 AM
[SOLVED] VMware Workstation 8 - No sound in Win7x64 Guest bcl00 Slackware 4 08-23-2012 07:17 PM
Solaris 10 on VMware Workstation? (Guest OS) as400 Solaris / OpenSolaris 1 08-09-2009 03:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 09:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration