Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 877
  • Last Modified:

Trying to get catalog using pkg-get but Solaris 10 cannot connect to the Internet

I am trying to get the catalog for pkg-get so that I can install software easier on my unix box. But I get this error.

I am guessing that my box cannot connect to the Internet. I also did an nslookup with no result.
0
theOctopus
Asked:
theOctopus
  • 6
  • 5
1 Solution
 
TintinCommented:
What was the error?  Are you behind a proxy server?
0
 
theOctopusAuthor Commented:
Sorry. Thought I attached a snippet.

(03:02 PM) $ pfexec /opt/csw/bin/pkgutil --catalog
Fetching new catalog if available...
--15:02:42--  http://blastwave.network.com/csw/unstable/i386/5.10/catalog
           => `/var/opt/csw/pkgutil/catalog.i386.5.10.0'
Resolving blastwave.network.com... failed: Host not found.

Fetching of catalog failed.



I just edited the resolv.conf with proper nameservers but still nothing.
0
 
theOctopusAuthor Commented:
And by the way, I can ping IPs but NOT domain names such as www.google.com. This did not change after editing the resolv.conf.
0
Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

 
theOctopusAuthor Commented:
(03:06 PM) $ ping www.google.com
ping: unknown host www.google.com

(03:06 PM) $ ping 74.125.67.100
74.125.67.100 is alive
0
 
TintinCommented:
What name servers did you put in /etc/resolv.conf?

Do those name servers resolve to the outside world?
0
 
theOctopusAuthor Commented:
Yes the name servers are correct. I got them from another server in a very similar environment. Could I leverage anything from the other server that has the ability to reach the net?
0
 
TintinCommented:
What's the result of

host -v google.com
0
 
theOctopusAuthor Commented:
(03:16 PM) $ host -v google.com
Trying "google.com"
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 1674
;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 0

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

;; ANSWER SECTION:
google.com.             300     IN      A       209.85.171.100
google.com.             300     IN      A       74.125.67.100
google.com.             300     IN      A       74.125.45.100

Received 76 bytes from 10.131.251.10#53 in 40 ms
Trying "google.com"
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 1828
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

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

;; AUTHORITY SECTION:
google.com.             300     IN      SOA     ns1.google.com. dns-admin.google.com. 2009
022302 7200 1800 1209600 300

Received 78 bytes from 10.131.251.10#53 in 27 ms
Trying "google.com"
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 931
;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 0

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

;; ANSWER SECTION:
google.com.             10800   IN      MX      10 smtp1.google.com.
google.com.             10800   IN      MX      10 smtp2.google.com.
google.com.             10800   IN      MX      10 smtp3.google.com.
google.com.             10800   IN      MX      10 smtp4.google.com.

Received 116 bytes from 10.131.251.10#53 in 48 ms
0
 
TintinCommented:
Do you have

hosts:          files dns

in /etc/nsswitch.conf


0
 
theOctopusAuthor Commented:
No but neither does the other server and it works...
0
 
TintinCommented:
Some commands don't consult nsswitch.conf, but most do.

if you want to use DNS names, then you'll need to edit your nsswitch.conf entry.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 6
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now