GTCL (Gas Transmission Company Limited) Assistant Engineer (CSE) Exam: 2022 (BUET)প্রশ্ন ও সমাধান
- Set by
- GTCL
- Post
- Assistant Engineer
- Exam date
- 2022
- Conducted by
- BUET
- Questions
- 4 (0 MCQ, 4 written)
- Exam guide
- Government IT officer posts · সরকারি প্রতিষ্ঠানের আইটি পদ
- Cloud & Emerging Tech · ক্লাউড ও উদীয়মান প্রযুক্তি 1
- Cyber Security · সাইবার নিরাপত্তা 1
- Operating Systems · অপারেটিং সিস্টেম 1
- Programming · প্রোগ্রামিং 1
Write a program with a recursive function that shows the sum of its digits. For example, input =3426, output will be 3+4+2+6=15.
Sign up free to see the model answer · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Linux command:
Sign up free to see the model answer · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
What do you mean by a DNS poisoning attack, and how does it work?
Model answer
Answer: DNS poisoning (DNS cache poisoning) is an attack in which a hacker injects a forged DNS record into a resolver's cache, causing it to return a fraudulent IP address for a legitimate domain name.
How it works:
- The attacker floods a resolver with forged DNS responses, racing to guess the transaction ID/source port before the real authoritative server's genuine reply arrives.
- If the spoofed response is accepted first, the resolver caches the fake domain-to-IP mapping for its configured TTL.
- Every user whose device queries that (now-poisoned) resolver is silently redirected to the attacker's IP instead of the real site — even though the correct domain name was typed.
sequenceDiagram
participant C as Client
participant R as DNS Resolver
participant H as Attacker
participant S as Real Server
C->>R: Query - www.bank.com?
H-->>R: Forged reply - www.bank.com = Attacker IP (races the real reply)
R->>R: Caches the forged (poisoned) record
R-->>C: Returns Attacker's IP
C->>H: Connects, believing it is www.bank.com
Note over S: Real server never receives the client's traffic
Impact: the fake site is usually a visual clone, enabling credential theft, malware delivery, or man-in-the-middle interception.
Defences: DNSSEC (cryptographically signs DNS records), randomised query IDs/source ports, and resolvers validating that responses come from the exact server queried.
Exam takeaway: DNS poisoning = injecting a fake IP into a resolver's cache so a legitimate domain resolves to an attacker-controlled server; DNSSEC is the standard countermeasure.
Weak and strong learner ensemble learning in Machine learning.
Sign up free to see the model answer · উত্তর দেখতে বিনামূল্যে সাইন আপ করুন
Question text is from the public recruitment exam; answers and explanations are written by ARBS Academy. All past papers · Government IT officer posts guide