LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-23-2009, 01:49 PM   #31
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 190Reputation: 190

http://www.madboa.com/geek/dig/

http://learnlinux.tsf.org.za/courses...n/ch07s08.html

dig your regular dns
Code:
it-lenny:~$ dig www.slashdot.com

; <<>> DiG 9.5.1-P1 <<>> www.slashdot.com
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 17765
;; flags: qr aa; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;www.slashdot.com.		IN	A

;; ANSWER SECTION:
www.slashdot.com.	3600	IN	A	216.34.181.48

;; Query time: 60 msec
;; SERVER: 192.168.0.25#53(192.168.0.25)
;; WHEN: Tue Jun 23 13:46:53 2009
;; MSG SIZE  rcvd: 50
dig using a specific public dns server such as 4.2.2.1
Code:
it-lenny:~$ dig @4.2.2.1 www.slashdot.com

; <<>> DiG 9.5.1-P1 <<>> @4.2.2.1 www.slashdot.com
; (1 server found)
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 17530
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;www.slashdot.com.		IN	A

;; ANSWER SECTION:
www.slashdot.com.	3600	IN	A	216.34.181.48

;; Query time: 145 msec
;; SERVER: 4.2.2.1#53(4.2.2.1)
;; WHEN: Tue Jun 23 13:46:42 2009
;; MSG SIZE  rcvd: 50
compare the results, do they match ?
if they match then your DNS is working properly.. if they are different, then something is redirecting your DNS queries..
 
Old 06-23-2009, 03:19 PM   #32
ssssaaaammmm66
LQ Newbie
 
Registered: Mar 2009
Posts: 15

Original Poster
Rep: Reputation: 0
Using a public dns server such as 4.2.2.1 the results matched.

But for the first query I get ->>HEADER<<- opcode: QUERY, status: refused,
 
Old 06-23-2009, 11:10 PM   #33
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
You should not be getting refused on a standard DNS query.. are you sure your regular DNS settings are correct ?

if you edit your resolv.conf and insert the 4.2.2.1 as your DNS, does your Linux box now surf properly ?
 
Old 06-24-2009, 08:25 AM   #34
ssssaaaammmm66
LQ Newbie
 
Registered: Mar 2009
Posts: 15

Original Poster
Rep: Reputation: 0
tried that and many other DNS numbers on windows still when I dig www.slashdot.com all get is
Got answer:
;; ->>HEADER<<- opcode: QUERY, status: REFUSED
 
Old 06-24-2009, 02:09 PM   #35
dv502
Member
 
Registered: Sep 2006
Location: USA - NYC
Distribution: Whatever icon you see!
Posts: 642

Rep: Reputation: 57
@ ssssaaaammmm66

You have a very unusual and difficult problem with your windows machine and internet setup.

Before your windows and internet connection messed up, did you installed anything on your windows system that is internet related? Did you fiddle around with your router settings or did you installed any firewalls and fiddle with its settings?

Have you tried turning off any firewall(s) and see if the effects has changed?

Are you using your ISP's DNS server(s) or are you using a third party DNS?

If you can try hard and remember what you did before your internet connection got mess up that would help greatly.

PS: I think you should contact your ISP and have them send a on-site technician and look at what is happening with your internet setup if the problems persists.

Last edited by dv502; 06-24-2009 at 02:33 PM.
 
Old 06-24-2009, 02:54 PM   #36
ssssaaaammmm66
LQ Newbie
 
Registered: Mar 2009
Posts: 15

Original Poster
Rep: Reputation: 0
I cant remember whether I fiddled around with my router settings, I don't think I've even got a control panel for my router, could I download one off netgears site. WOuld changing my router and having a fresh start do anything.


Could the reason for dig not working be because I've installed it incorrectly.

Could the reason for the redirects be a virus on my router and if so would getting a new router resolve the problem

Oh and I'm using many types of DNSat the moment its 4.2.2.2 4.2.2.3
strangly enough the redirect problem has just been solved just after I've changed my DNS server. Strangly enough it noe works even if I set it to locate server automatically presumably using my ISP's DNS server.

Last edited by ssssaaaammmm66; 06-24-2009 at 03:01 PM.
 
Old 06-24-2009, 04:53 PM   #37
dv502
Member
 
Registered: Sep 2006
Location: USA - NYC
Distribution: Whatever icon you see!
Posts: 642

Rep: Reputation: 57
Don't know much about netgear products, but it should have some kind of web interface like linksys has. For example, to access my linksys router settings, I would type 192.168.1.1 in my web browser.

The linksys website also includes docs and firmware upgrades for each of their products. I've updated my firmware at least three times with no problems.

Quote:
WOuld changing my router and having a fresh start do anything.
I would suggest trying a hard reset of your router first. This will set your router to its factory default or like new. Make sure to note the settings so you can re-enter them again.

Quote:
Could the reason for dig not working be because I've installed it incorrectly.
Don't think so. Dig is usually included in most distros and/or is installed properly if you used a package manager.

Quote:
Could the reason for the redirects be a virus on my router and if so would getting a new router resolve the problem
I can't tell if your router is infected or not. But, if it is, worms and viruses can do whatever the creator wants it to do.

Routers can also be compromised just like any other OS. The recent attack of the psybot worm attacked routers that had the default password and remote management enabled. I read that upgrading the firmware and/or doing a hard reset of the router would remove the worm.

As for the DNS, I never mess with it. I always use the default DNS servers my ISP provides. If you had use other DNS servers other than your ISPs, maybe this is what cause all the errors you were getting. DNS is a tricky subject and is not for beginners to mess around with. Any misconfiguration of your DNS servers can produce unpredictable results.

- later

Last edited by dv502; 06-24-2009 at 06:06 PM.
 
Old 06-29-2009, 07:46 AM   #38
ssssaaaammmm66
LQ Newbie
 
Registered: Mar 2009
Posts: 15

Original Poster
Rep: Reputation: 0
I've just got into my router diagnostic and from their I can do DNS lookups. If I lookup www.slashdot.com I get a answer, but when I dig I get status: refused

Last edited by ssssaaaammmm66; 06-29-2009 at 01:23 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting from Windows XP over to Ubuntu Hesitant to reformat. <Kenny> Ubuntu 6 10-26-2008 08:30 PM
Protecting the bootloader from a windows reformat ethics Linux - Newbie 12 05-04-2005 04:49 PM
wiki help /outdoorspeople read aswell titanium_geek General 4 01-10-2005 06:36 AM
reformat for Windows Kees Linux - Software 2 07-04-2002 07:26 PM
reformat from Linux to NT or Windows donsung Linux - General 5 11-04-2001 11:14 PM


All times are GMT -5. The time now is 03:57 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration