I failed second part of this recruitment challenge
The first part was easy, but I don’t know how to solve the second part. I don’t know what to do to access the site. I just answered that site.recruitment.shq.nz can’t be reached because it’s pointing to a private IP address: 192.168.1.10
. Is it really possible to access the site? Please help me understand the problem
The Challenge
This challenge is broken into two parts: one in which you will call a few API endpoints to retrieve some information, and one in which you will use this information to help identify a problem with a fictional customer's website.
Part One - Calling an API
We have provided a simple API that returns information about registered domain names and any DNS records associated with those domains. This API returns data in JSON format and exposes the following endpoints:
/domains/{client_id}
: Returns a list of domains registered by the customer with IDclient_id
including a list of any DNS zones that exist for each domain./zones/{zone_id}
: Returns a list of DNS records for the DNS zone with IDzone_id
The URL for the API is https://api.recruitment.shq.nz
and to access it you will need to provide a key as a query parameter named api_key
.
The customer Business Systems International has a client_id
of 100
. Using the endpoints available to you, the API key h523hDtETbkJ3nSJL323hjYLXbCyDaRZ
, and the programming language of your choice, retrieve a list of their domains, and DNS records and print them to the screen.
Keep your code simple, with no (or very few) dependencies and tell us how we can run it to see the result. By the way, the information returned may be handy later.
Part Two - Resolving a Customer Issue
Customers entrust us with their websites, data, and livelihoods. We take this very seriously. This part of the challenge will test your ability to troubleshoot a common customer issue, and communicate your findings to them effectively.
In the file email.md
you will find an email from Alice at Business Systems International describing an issue accessing their website. Use the information in the email (and perhaps some other sources), to identify what is wrong with the website and figure out a way to visit it. Remember, the site is deliberately broken, its up to you to figure out what's wrong and how to access it. Once on the site, view the source and retrieve the code hidden in an HTML comment in the <head>
of the document. The code will look something like: <!-- This is what you're looking for: SOME_CODE_STRING -->
.
In reply.md
respond to the customer explaining the issue and how they can resolve it (note that you cannot resolve the issue yourself). Keep your reply concise and make sure you include the code that you retrieved from their site as proof that you managed to see the page.
Hi there,
Our website site.recruitment.shq.nz is completely inaccessible. When I try to visit the site in my browser I get "An error occurred during a connection to site.recruitment.shq.nz". The IP address of the server running the site is 120.138.30.179 if that helps.
Please let us know what you find as we need to get the site running again ASAP.
Cheers, Alice
DNS Records of site.recruitment.shq.nz
{
name: 'recruitment.shq.nz',
records: [
{
id: '2511471',
name: 'recruitment.shq.nz',
type: 'SOA',
content: 'ns1.sitehost.co.nz
Answer
This is my answer
Hi Alice,
Thanks for reaching out. Upon checking the DNS record under site.recruitment.shq.nz, it seems that it is pointing to a private IP address: 192.168.1.10. To fix this, You will need to update the type A record for site.recruitment.shq.nz to the correct public IP address. perhaps the 120.138.30.179.