I am trying to use the nuget restore command to restore NuGet packages on a CI server. I can run it locally without issue, but on the server I am getting a number of warnings (errors, really):
WARNING: The remote name could not be resolved: 'www.nuget'
WARNING: The remote name could not be resolved: 'www.nuget'
WARNING: The remote name could not be resolved: 'www.nuget'
WARNING: The remote name could not be resolved: 'www.nuget'
WARNING: The remote name could not be resolved: 'www.nuget'
WARNING: The remote name could not be resolved: 'www.nuget'
WARNING: The remote name could not be resolved: 'www.nuget'
Installing 'NSubstitute 1.8.1.0'.
Successfully installed 'NSubstitute 1.8.1.0'.
WARNING: The remote name could not be resolved: 'www.nuget'
WARNING: The remote name could not be resolved: 'www.nuget'
Unable to find version '1.7' of package 'DotSpatial.Data'.
Unable to find version '1.7' of package 'DotSpatial.Mono'.
Unable to find version '1.7' of package 'DotSpatial.Projections'.
Unable to find version '1.7' of package 'DotSpatial.Serialization'.
Unable to find version '1.7' of package 'DotSpatial.Topology'.
Unable to find version '9.1.1' of package 'JetBrains.Annotations'.
Unable to find version '1.0.0' of package 'SimpleLogger'.
Unable to find version '3.5.1' of package 'YamlDotNet'.
Unable to find version '2.0.0' of package 'NUnitTestAdapter.WithFramework'.
From what I can find (similar issues linked below), unable to resolve is a DNS issue. The NuGet status page shows DNS as working and the fact that I can run it locally without issue seems to indicate that it is not a NuGet server issue. I am using the command-line utility downloaded directly from the NuGet website in both locations. I have checked to ensure that there are no proxy-related environment variables interfering with the process. I am using Windows 7 in both locations. What could be the issue here?
Similar issues:
- Two questions (1 and 2) on the AppHarbor support website
- Nuget Unable to connect to remote server
- The remote name could not be resolved 'www.nuget.org'