Author Topic: Hostname not known  (Read 5905 times)

Offline Graham Morgan

  • Newcomer
  • *
  • Posts: 46
    • View Profile
Hostname not known
« on: March 03, 2010, 04:41:28 PM »
Hi Kirk

I am getting the 'Hostname not known' thing all the time with Flickr uploads, can you please advise.

Thanks

Graham

Online Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 24764
    • View Profile
    • Camera Bits, Inc.
Re: Hostname not known
« Reply #1 on: March 03, 2010, 04:50:16 PM »
Graham,

I am getting the 'Hostname not known' thing all the time with Flickr uploads, can you please advise.

What OS are you running?  What version of Photo Mechanic are you running?

-Kirk

Offline Graham Morgan

  • Newcomer
  • *
  • Posts: 46
    • View Profile
Re: Hostname not known
« Reply #2 on: March 03, 2010, 05:02:55 PM »
Hi Kirk

10.5.8    and  4.6.3

4.6.2 was doing the same thing.

Thanks

Graham

Online Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 24764
    • View Profile
    • Camera Bits, Inc.
Re: Hostname not known
« Reply #3 on: March 03, 2010, 05:50:54 PM »
Graham,

10.5.8    and  4.6.3

4.6.2 was doing the same thing.

It sounds like DNS lookups are not working on your system.  Please see this thread:

http://forums.camerabits.com/index.php?topic=5087.0

for a solution.

HTH,

-Kirk

Offline Graham Morgan

  • Newcomer
  • *
  • Posts: 46
    • View Profile
Re: Hostname not known
« Reply #4 on: March 04, 2010, 12:59:30 AM »
Does this make any sense, I typed the 'dig flickr.com' in terminal and get this.

SARAH:~ grahammorgan$ dig flickr.com
;; reply from unexpected source: 192.168.1.254#53, expected 10.0.0.138#53
;; reply from unexpected source: 192.168.1.254#53, expected 10.0.0.138#53
;; reply from unexpected source: 192.168.1.254#53, expected 10.0.0.138#53

; <<>> DiG 9.4.3-P3 <<>> flickr.com
;; global options:  printcmd
;; connection timed out; no servers could be reached

Online Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 24764
    • View Profile
    • Camera Bits, Inc.
Re: Hostname not known
« Reply #5 on: March 04, 2010, 06:52:03 AM »
Does this make any sense, I typed the 'dig flickr.com' in terminal and get this.

SARAH:~ grahammorgan$ dig flickr.com
;; reply from unexpected source: 192.168.1.254#53, expected 10.0.0.138#53
;; reply from unexpected source: 192.168.1.254#53, expected 10.0.0.138#53
;; reply from unexpected source: 192.168.1.254#53, expected 10.0.0.138#53

; <<>> DiG 9.4.3-P3 <<>> flickr.com
;; global options:  printcmd
;; connection timed out; no servers could be reached

You appear to be having some sort of DNS (Domain Name Server) problem and it looks like you can't even get out of your local network.  You should get something more like this:

kbaker$ dig flickr.com

; <<>> DiG 9.3.6-APPLE-P2 <<>> flickr.com
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 15722
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 5, ADDITIONAL: 5

;; QUESTION SECTION:
;flickr.com.                    IN      A

;; ANSWER SECTION:
flickr.com.             300     IN      A       68.142.214.24

;; AUTHORITY SECTION:
flickr.com.             262     IN      NS      ns3.yahoo.com.
flickr.com.             262     IN      NS      ns7.yahoo.com.
flickr.com.             262     IN      NS      ns1.yahoo.com.
flickr.com.             262     IN      NS      ns5.yahoo.com.
flickr.com.             262     IN      NS      ns2.yahoo.com.

;; ADDITIONAL SECTION:
ns1.yahoo.com.          490     IN      A       68.180.131.16
ns2.yahoo.com.          490     IN      A       68.142.255.16
ns3.yahoo.com.          490     IN      A       121.101.152.99
ns5.yahoo.com.          490     IN      A       119.160.247.124
ns7.yahoo.com.          571     IN      A       68.142.226.82

;; Query time: 33 msec
;; SERVER: 192.168.2.1#53(192.168.2.1)
;; WHEN: Thu Mar  4 06:36:31 2010
;; MSG SIZE  rcvd: 220

If you have an IT department, contact them.  If you just have an ISP (Internet Service Provider) try contacting them.

Can you connect to flickr via your web browser?  If you issue this command in the Terminal application:

dscacheutil -flushcache

can you still connect to flickr via your web browser?

-Kirk

Offline Graham Morgan

  • Newcomer
  • *
  • Posts: 46
    • View Profile
Re: Hostname not known
« Reply #6 on: March 04, 2010, 11:03:39 AM »
Hi Kirk

I have used that command, nothing changed and yes I can connect in a web browser, never had this issue before, only with PM and Flickr.

Thanks

Graham


Online Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 24764
    • View Profile
    • Camera Bits, Inc.
Re: Hostname not known
« Reply #7 on: March 04, 2010, 11:36:51 AM »
Graham,

I have used that command, nothing changed and yes I can connect in a web browser, never had this issue before, only with PM and Flickr.

OK.  Well I don't know why DNS isn't working on your machine for Photo Mechanic, but your results from 'dig' indicate some issues.  Please check with your ISP.

-Kirk

sidewinder

  • Guest
Re: Hostname not known
« Reply #8 on: March 04, 2010, 12:38:57 PM »
Graham,

You could add these two lines to your  "/private/etc/hosts" file:

68.142.214.24   www.flickr.com
68.142.214.24   api.flickr.com

Use this Terminal command:

sudo nano /private/etc/hosts

You need to know the admin password.

Put these lines on their own line at the end. Note that there are tabs between the IP address and the hostname.

Then issue:

dscacheutil -flushcache

That should do it.

Scott

Offline Graham Morgan

  • Newcomer
  • *
  • Posts: 46
    • View Profile
Re: Hostname not known
« Reply #9 on: March 04, 2010, 03:01:56 PM »
Right..............I reset my router to factory settings, start from scratch and now get this.

Grahamlaptop:~ grahammorgan$ dig flickr.com

; <<>> DiG 9.4.3-P3 <<>> flickr.com
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 54842
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;flickr.com.         IN   A

;; ANSWER SECTION:
flickr.com.      295   IN   A   68.142.214.24

;; Query time: 36 msec
;; SERVER: 192.168.1.254#53(192.168.1.254)
;; WHEN: Thu Mar  4 22:49:14 2010
;; MSG SIZE  rcvd: 44

Grahamlaptop:~ grahammorgan$



Offline Graham Morgan

  • Newcomer
  • *
  • Posts: 46
    • View Profile
Re: Hostname not known
« Reply #10 on: March 04, 2010, 03:18:10 PM »
Right..............I reset my router to factory settings, start from scratch and now get this.

Grahamlaptop:~ grahammorgan$ dig flickr.com

; <<>> DiG 9.4.3-P3 <<>> flickr.com
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 54842
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;flickr.com.         IN   A

;; ANSWER SECTION:
flickr.com.      295   IN   A   68.142.214.24

;; Query time: 36 msec
;; SERVER: 192.168.1.254#53(192.168.1.254)
;; WHEN: Thu Mar  4 22:49:14 2010
;; MSG SIZE  rcvd: 44

Grahamlaptop:~ grahammorgan$




Doing a lookup from the network utility I get this

Lookup has started ...


; <<>> DiG 9.4.3-P3 <<>> flickr.com ns +multiline +nocomments +nocmd +noquestion +nostats +search
;; global options:  printcmd
flickr.com.      53655 IN NS ns2.yahoo.com.
flickr.com.      53655 IN NS ns5.yahoo.com.
flickr.com.      53655 IN NS ns3.yahoo.com.
flickr.com.      53655 IN NS ns1.yahoo.com.
flickr.com.      53655 IN NS ns7.yahoo.com.
ns5.yahoo.com.      152607 IN A 119.160.247.124
ns3.yahoo.com.      152501 IN A 121.101.152.99
ns1.yahoo.com.      149697 IN A 68.180.131.16
ns7.yahoo.com.      74927 IN A 68.142.226.82
ns2.yahoo.com.      153024 IN A 68.142.255.16

Surely this says everything is good, I can't think of any reason why there should be a problem..........any advice?


Offline Graham Morgan

  • Newcomer
  • *
  • Posts: 46
    • View Profile
Re: Hostname not known
« Reply #11 on: March 04, 2010, 03:29:23 PM »
Right..............I reset my router to factory settings, start from scratch and now get this.

Grahamlaptop:~ grahammorgan$ dig flickr.com

; <<>> DiG 9.4.3-P3 <<>> flickr.com
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 54842
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;flickr.com.         IN   A

;; ANSWER SECTION:
flickr.com.      295   IN   A   68.142.214.24

;; Query time: 36 msec
;; SERVER: 192.168.1.254#53(192.168.1.254)
;; WHEN: Thu Mar  4 22:49:14 2010
;; MSG SIZE  rcvd: 44

Grahamlaptop:~ grahammorgan$




Doing a lookup from the network utility I get this

Lookup has started ...


; <<>> DiG 9.4.3-P3 <<>> flickr.com ns +multiline +nocomments +nocmd +noquestion +nostats +search
;; global options:  printcmd
flickr.com.      53655 IN NS ns2.yahoo.com.
flickr.com.      53655 IN NS ns5.yahoo.com.
flickr.com.      53655 IN NS ns3.yahoo.com.
flickr.com.      53655 IN NS ns1.yahoo.com.
flickr.com.      53655 IN NS ns7.yahoo.com.
ns5.yahoo.com.      152607 IN A 119.160.247.124
ns3.yahoo.com.      152501 IN A 121.101.152.99
ns1.yahoo.com.      149697 IN A 68.180.131.16
ns7.yahoo.com.      74927 IN A 68.142.226.82
ns2.yahoo.com.      153024 IN A 68.142.255.16

Surely this says everything is good, I can't think of any reason why there should be a problem..........any advice?



Ok..............running 'look up' from the network utility seems to have kick started things, make a note of it!

Thanks for your help, problem solved.

Graham